simplefileshare/PKGBUILD

35 lines
961 B
Bash
Raw Normal View History

2021-08-31 19:07:19 +05:00
pkgname=simplefileshare
2024-07-10 16:16:51 +05:00
pkgver=0.1.4
2021-08-31 19:07:19 +05:00
pkgrel=0
pkgdesc="Simple file share"
arch=('x86_64' 'aarch64')
license=('GPL')
url="https://github.com/nxshock/$pkgname"
makedepends=('go' 'git')
options=('!strip')
2021-09-01 13:55:48 +05:00
backup=("etc/$pkgname.conf")
2021-09-22 19:20:59 +05:00
source=(
"git+https://github.com/nxshock/$pkgname.git"
'git+https://github.com/dmhendricks/file-icon-vectors')
sha256sums=(
'SKIP'
'SKIP')
2021-08-31 19:07:19 +05:00
build() {
cd "$srcdir/$pkgname"
2021-09-22 19:25:19 +05:00
mv ../file-icon-vectors/dist/icons/high-contrast icons
2021-09-22 19:20:59 +05:00
2021-08-31 19:07:19 +05:00
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"
2021-12-25 13:39:20 +05:00
install -Dm644 "$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
2021-08-31 19:07:19 +05:00
}