diff options
author | Roshless | 2020-07-27 22:57:56 +0200 |
---|---|---|
committer | Roshless | 2020-07-27 22:57:56 +0200 |
commit | 8cd77547774dcd8b9de122dc9b85cd208356be59 (patch) | |
tree | f1170c0e573d4cd897f7013030500478eda1845c /PKGBUILD | |
download | aur-8cd77547774dcd8b9de122dc9b85cd208356be59.tar.gz |
Initial upload: gofu 1.1.2-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..324d2449216c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Roshless <pkg@roshless.com> + +pkgname=gofu +pkgrel=2 +pkgver=1.1.2 +pkgdesc='Simple file share service in go' +url='https://git.roshless.me/~roshless/gofu' +arch=('x86_64' 'i686') +license=('AGPL') +provides=("$pkgname") +conflicts=("$pkgname") +makedepends=('git' 'go') +install=gofu.install +backup=('var/lib/gofu/config.ini') +source=("https://git.roshless.me/~roshless/$pkgname/archive/$pkgver.tar.gz" + "gofu.service" + "gofu.sysusers" + "gofu.tmpfiles") + +build() { + cd $pkgname-$pkgver + go build \ + -trimpath \ + -o $pkgname . +} + +package() { + install -Dm644 $pkgname.service -t "$pkgdir/usr/lib/systemd/system/" + install -Dm644 $pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" + install -Dm644 $pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" + + + cd $pkgname-$pkgver + install -Dm755 $pkgname -t "$pkgdir/usr/bin/" + install -D "dist/config.ini" "$pkgdir/var/lib/$pkgname/config.ini" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" +} + +md5sums=('3402cb0ee0eb25900192f6130a6fcc3d' + 'b85e2bf437eb4528a319f797c18c2fc3' + 'b7e1a3c7f09bed0d04e918d7a0a87be7' + '279dcf052b7ac8b83a8781b36071c47e') |