~roshless/PKGBUILDs

0cbde114ce696317dde7e6040ba31a5b028105a8 — Roshless 5 months ago 353cc6f
upgpkg: gofu 1.1.3-3

fix dependencies and formatting
2 files changed, 17 insertions(+), 16 deletions(-)

M gofu/.SRCINFO
M gofu/PKGBUILD
M gofu/.SRCINFO => gofu/.SRCINFO +2 -2
@@ 1,7 1,7 @@
pkgbase = gofu
	pkgdesc = Simple file share service in go
	pkgver = 1.1.3
	pkgrel = 2
	pkgrel = 3
	url = https://git.roshless.me/~roshless/gofu
	install = gofu.install
	arch = x86_64


@@ 9,6 9,7 @@ pkgbase = gofu
	license = AGPL
	makedepends = git
	makedepends = go
	depends = glibc
	provides = gofu
	conflicts = gofu
	backup = var/lib/gofu/config.ini


@@ 22,4 23,3 @@ pkgbase = gofu
	md5sums = 279dcf052b7ac8b83a8781b36071c47e

pkgname = gofu


M gofu/PKGBUILD => gofu/PKGBUILD +15 -14
@@ 1,7 1,7 @@
# Maintainer: Roshless <pkg@roshless.com>

pkgname=gofu
pkgrel=2
pkgrel=3
pkgver=1.1.3
pkgdesc='Simple file share service in go'
url='https://git.roshless.me/~roshless/gofu'


@@ 9,6 9,7 @@ arch=('x86_64' 'i686')
license=('AGPL')
provides=("$pkgname")
conflicts=("$pkgname")
depends=('glibc')
makedepends=('git' 'go')
install=gofu.install
backup=('var/lib/gofu/config.ini')


@@ 18,23 19,23 @@ source=("https://git.roshless.me/~roshless/$pkgname/archive/$pkgver.tar.gz"
	"gofu.tmpfiles")

build() {
  cd $pkgname-$pkgver
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  go build -o $pkgname .
	cd $pkgname-$pkgver
	export CGO_CPPFLAGS="${CPPFLAGS}"
	export CGO_CFLAGS="${CFLAGS}"
	export CGO_CXXFLAGS="${CXXFLAGS}"
	export CGO_LDFLAGS="${LDFLAGS}"
	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
	go build -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"
	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"
	cd $pkgname-$pkgver
	install -Dm755 $pkgname -t "$pkgdir/usr/bin/"
	install -D "dist/config.ini" "$pkgdir/var/lib/$pkgname/config.ini"
}

md5sums=('b226e3fdf410460d14a672cd7b4f52d0'