2022-04-07 14:19:48 +00:00
|
|
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
|
|
pkgname=shorten
|
2023-12-21 21:55:02 +00:00
|
|
|
pkgver=1.2.0
|
2022-04-07 14:19:48 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Simple URL shortener"
|
|
|
|
url="https://git.ddd.rip/ptrcnull/shorten"
|
2023-05-03 01:11:45 +00:00
|
|
|
arch="aarch64 x86_64"
|
2022-04-07 14:19:48 +00:00
|
|
|
license="BSD-2-Clause"
|
|
|
|
makedepends="go"
|
|
|
|
subpackages="$pkgname-openrc"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::https://git.ddd.rip/ptrcnull/shorten/archive/v$pkgver.tar.gz
|
2022-04-25 23:54:23 +00:00
|
|
|
shorten.initd
|
|
|
|
shorten.confd
|
|
|
|
"
|
2022-04-07 14:19:48 +00:00
|
|
|
options="!check"
|
|
|
|
builddir="$srcdir/shorten"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
go build -o shorten .
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm755 shorten "$pkgdir"/usr/bin/shorten
|
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/shorten.initd "$pkgdir"/etc/init.d/shorten
|
|
|
|
install -Dm644 "$srcdir"/shorten.confd "$pkgdir"/etc/conf.d/shorten
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-12-21 21:55:02 +00:00
|
|
|
b657e09196cf792caf741d64f9c12b39ca651dd29d6e97ce948243bf9d72823671bb56bf0309a48afae106b7bc002dc8a2bb668f2e71cbbbc69f32951e4b3216 shorten-1.2.0.tar.gz
|
2022-04-07 14:19:48 +00:00
|
|
|
e030ea786e8f47f503476a5bca6ce1a88e3e0090c61005d247a7a16819020b22facf9cdfdaed2a615306aa5639d790cf718781df75c786ff66e7f0b980031248 shorten.initd
|
|
|
|
45d1a7b08f48f8aa6f84a390403927614533d68b1680e9a332da439e790df6bdbd59e5b44af901a14029e7aa27c1820e5d62f129fec8590fd2f97f6a5096a81e shorten.confd
|
|
|
|
"
|