diff options
author | Joffrey | 2023-05-22 16:56:33 +0200 |
---|---|---|
committer | Joffrey | 2023-05-22 16:56:33 +0200 |
commit | 6f001b73c9bb464ae082789c7ab05188996111de (patch) | |
tree | bb08017a2555127f2d33b20c025ae98ad574029b | |
parent | 848a2dc5b1a8db37ec9b9914fe2ff66231f19caf (diff) | |
download | aur-6f001b73c9bb464ae082789c7ab05188996111de.tar.gz |
Add notification-server
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 12 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = seafile-server pkgdesc = Seafile server core pkgver = 10.0.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/haiwen/seafile-server arch = i686 arch = x86_64 @@ -5,7 +5,7 @@ pkgname=seafile-server pkgver=10.0.1 -pkgrel=1 +pkgrel=2 pkgdesc='Seafile server core' arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64') url='https://github.com/haiwen/seafile-server' @@ -56,7 +56,7 @@ build() { --enable-ldap make - # Goland file-server + # Build Go packages export GOPATH="$srcdir" export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CFLAGS="$CFLAGS" @@ -71,8 +71,11 @@ build() { GOFLAGS+=' -modcacherw' export GOFLAGS - cd ./fileserver - go build . + for pkg in fileserver notification-server; do + pushd "$pkg" + go build . + popd + done } package() { @@ -87,7 +90,10 @@ package() { # The scripts needs this bin directory. ln -s /usr/bin/ "$pkgdir/usr/share/$pkgname/seafile/bin" - install -Dm755 ./fileserver/fileserver "$pkgdir/usr/bin/fileserver" + # Install Go binaries + for bin in fileserver notification-server; do + install -Dm755 "$bin/$bin" "$pkgdir/usr/bin/$bin" + done # Systemd install -Dm644 \ |