From 796b63f9bb2e4588a9db2ac465c24853dc673fba Mon Sep 17 00:00:00 2001 From: Andrew Sichevoi Date: Sun, 3 Jan 2021 18:42:17 +0100 Subject: [PATCH] build: PKGBUILD added --- PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..223fdbf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=zvuchno +pkgver=0.0.1 +pkgrel=1 +pkgdesc="PulseAudio volume notification service in go. Simple and yet another." +arch=('x86_64') +url="https://github.com/thekondor/zvuchno" +license=('MPL') +makedepends=( + 'git' + 'go' +) +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thekondor/zvuchno/archive/v${pkgver}.tar.gz") +sha256sums=('6e2dae52d61db28106b799fc6694cfd22d5fdbfb55746f1d06c041336cdaab5d') + +build() { + export GOPATH="${srcdir}"/gopath + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_ENABLED=1 + + cd "${srcdir}/${pkgname}-${pkgver}" + go build -o build/${pkgname} . +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 build/${pkgname} "${pkgdir}"/usr/bin/${pkgname} +} + -- 2.20.1