diff options
author | Francesco Palumbo | 2022-09-21 21:44:29 +0200 |
---|---|---|
committer | Francesco Palumbo | 2022-09-21 21:44:29 +0200 |
commit | 930fcffdf9953cfd87c65a9f8e4061c4be66ee6f (patch) | |
tree | 41aadc10380265f1407c2498085a21feeb2c9365 /PKGBUILD | |
download | aur-lidact-git.tar.gz |
first commit of first lidact version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4feb02b4d853 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Francesco Palumbo <phranz@subfc.net> + +pkgname=lidact-git +_pkgname=lidact +pkgver=0.0.1 +pkgrel=1 +pkgdesc="A tool to execute programs on lid opening/closing." +arch=('x86_64') +url="https://codeberg.org/phranz/lidact" +license=('GPL3') +depends=() +makedepends=('git') +provides=(lidact) +conflicts=(lidact lidact-git) + +source=("$_pkgname"::'git+https://codeberg.org/phranz/lidact') +sha512sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/${_pkgname}/" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/${_pkgname}/" + make DESTDIR="$pkgdir/" install +} |