~roshless/PKGBUILDs

353cc6f11b066b3b9d81d05de9e18bcc1fd311f7 — Roshless 5 months ago 3726dc8
upgpkg: mumbledj 3.2.0-3

fix license and formatting
2 files changed, 15 insertions(+), 16 deletions(-)

M mumbledj/.SRCINFO
M mumbledj/PKGBUILD
M mumbledj/.SRCINFO => mumbledj/.SRCINFO +1 -2
@@ 1,7 1,7 @@
pkgbase = mumbledj
	pkgdesc = Mumble bot for playing audio
	pkgver = 3.2.0
	pkgrel = 2
	pkgrel = 3
	url = https://git.roshless.me/~roshless/mumbledj
	install = mumbledj.install
	arch = x86_64


@@ 22,4 22,3 @@ pkgbase = mumbledj
	md5sums = 60e800293a47a562623cb91166950984

pkgname = mumbledj


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

pkgname=mumbledj
pkgrel=2
pkgrel=3
pkgver=3.2.0
pkgdesc='Mumble bot for playing audio'
url='https://git.roshless.me/~roshless/mumbledj'


@@ 18,23 18,23 @@ optdepends=('aria2')
makedepends=('git' 'go')

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 -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/"
	cd $pkgname-$pkgver
	install -Dm755 $pkgname -t "$pkgdir/usr/bin/"
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

md5sums=('373fd5294e954fa855dd38b98b7c2b4c'