aboutsummaryrefslogtreecommitdiff
path: root/midr/APKBUILD
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:04:20 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-14 21:09:35 +0200
commit307af8fd5a3e74ebcb64ac5bbe57493b59ead233 (patch)
treed7f1e97a46713925041a6fa4de4dab5694529c7c /midr/APKBUILD
parent6d706f14b057e25b4b116ed1ee8c4db4b89454ab (diff)
downloadapkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.gz
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.tar.bz2
apkbuilds-307af8fd5a3e74ebcb64ac5bbe57493b59ead233.zip
feat: shamelessly copy pkgkit from sr.ht-apkbuilds
Copy some code from sourcehut's alpine build[0] to build my own packages. [0]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds
Diffstat (limited to 'midr/APKBUILD')
-rw-r--r--midr/APKBUILD51
1 files changed, 0 insertions, 51 deletions
diff --git a/midr/APKBUILD b/midr/APKBUILD
deleted file mode 100644
index b985257..0000000
--- a/midr/APKBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
-pkgname=midr
-pkgver=0.1.1
-pkgrel=3
-pkgdesc="yt-dlp simple frontend"
-url="https://git.sr.ht/~gabrielgio/midr"
-arch="x86_64"
-license="MIT"
-depends="
- yt-dlp
- ffmpeg
-"
-makedepends="
- go
-"
-builddir="$srcdir/$pkgname-v$pkgver/"
-install="$pkgname.pre-install"
-subpackages="$pkgname-openrc"
-source="
- ${pkgname}-${pkgver}.tar.gz::https://artifacts.gabrielgio.me/${pkgname}/${pkgname}-v${pkgver}.tar.gz
- midr.initd
- midr.confd
-"
-
-build() {
- go mod vendor
- go build \
- -trimpath \
- -mod=vendor \
- -ldflags="-X 'main.Version=${pkgver}'" \
- .
-}
-
-package() {
-
- install -Dm755 "$pkgname" "$pkgdir"/usr/lib/"$pkgname"/"$pkgname"
-
- mkdir -p "$pkgdir"/usr/bin
- ln -s /usr/lib/"$pkgname"/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
-
- install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname
-}
-
-sha512sums="
-a114bfe718d95ad5157aa55870b6bceb61dfcea7e0cb5d76b2ecd3b29a266d1c1e8c1204a4020da798a8bd24210b3eccdf1779311b524897458be511652692ba midr-0.1.1.tar.gz
-b540b2a8210ef525226ca798f39866bebcd60e2c17296e4d256dc6e8e887f37f493835c4e9f25c5ef7e6cee3e903f91afdbf2abf8bcb903c1a485c89b1e85411 midr.initd
-eaa355698e89b978c2158360802fa7ced7ead961187a0145af862fac09704b73d4e22e906a280c87e2280d2567dde0644382c5b226cb18d4165750a0a029d79f midr.confd
-"