diff options
author | Pieter Joost | 2020-11-19 13:01:15 +0100 |
---|---|---|
committer | Pieter Joost | 2020-11-19 13:01:15 +0100 |
commit | 6b3c7b62341fd53bf481a528cfe3ab1d956d6848 (patch) | |
tree | ae59273d41e27681598bcba6319744cda820762d | |
download | aur-randr-notify.tar.gz |
initial release version 0.1.0
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e3e90fbce64 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = randr-notify + pkgdesc = subscribe to randr xevents + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/pjvds/randr-notify + arch = 1686 + arch = x86_64 + arch = armv7h + arch = armv6h + arch = aarch64 + makedepends = go + makedepends = git + source = randr-notify-0.1.0.tar.gz::https://github.com/pjvds/randr-notify/archive/0.1.0.tar.gz + sha1sums = 6ab96e2deda52aa86b6d6f946a46f9f2ef0ba03e + +pkgname = randr-notify + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dbd76a9cd3ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Pieter Joost van de Sande <pj@born2code.net> +pkgname=randr-notify +pkgver=0.1.0 +pkgrel=1 +pkgdesc='subscribe to randr xevents' +arch=('1686' 'x86_64' 'armv7h' 'armv6h' 'aarch64') +url='https://github.com/pjvds/randr-notify' +makedepends=('go' 'git') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pjvds/randr-notify/archive/${pkgver}.tar.gz") +sha1sums=('6ab96e2deda52aa86b6d6f946a46f9f2ef0ba03e') + +build() { + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -o ${pkgname} -ldflags "-extldflags ${LDFLAGS} -s -w -X main.version=${pkgver}" main.go +} + +package() { + install -Dm755 "${pkgname}-${pkgver}/${pkgname}" ${pkgdir}/usr/bin/${pkgname} +} |