2021-08-14 09:59:41 +05:00
|
|
|
pkgname=promodj
|
2022-01-25 22:36:10 +05:00
|
|
|
pkgver=0.1.2
|
2021-08-14 09:59:41 +05:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Proxy client for promodj.com"
|
|
|
|
arch=('x86_64' 'aarch64')
|
|
|
|
license=('GPL')
|
|
|
|
url='https://github.com/nxshock/$pkgname'
|
|
|
|
depends=('ffmpeg')
|
|
|
|
makedepends=('go' 'git')
|
|
|
|
options=("!strip")
|
2021-09-23 09:24:12 +05:00
|
|
|
backup=("etc/$pkgname.conf")
|
2021-08-14 09:59:41 +05:00
|
|
|
source=("git+https://github.com/nxshock/$pkgname.git")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
go build -o $pkgname -buildmode=pie -trimpath -ldflags="-linkmode=external -s -w"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
|
|
|
|
install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
|
|
|
|
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
|
|
|
install -Dm644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
|
|
|
}
|