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 | |
download | aur-930fcffdf9953cfd87c65a9f8e4061c4be66ee6f.tar.gz |
first commit of first lidact version
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..02d3ab1f84b4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lidact-git + pkgdesc = A tool to execute programs on lid opening/closing. + pkgver = 0.0.1 + pkgrel = 1 + url = https://codeberg.org/phranz/lidact + arch = x86_64 + license = GPL3 + makedepends = git + provides = lidact + conflicts = lidact + conflicts = lidact-git + source = lidact::git+https://codeberg.org/phranz/lidact + sha512sums = SKIP + +pkgname = lidact-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..80bc2b8dd795 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.tar.gz +*.tar.zst +pkg +src +lidact/ 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 +} |