diff options
author | Thomas Voss | 2022-12-23 19:06:55 +0100 |
---|---|---|
committer | Thomas Voss | 2022-12-23 19:06:55 +0100 |
commit | 8d4cf97939be1c83ea9fa47914a186cf21c3c3f4 (patch) | |
tree | 8d2fbc6caf79eb7ebfe9bc15779557ee1e7e3182 | |
download | aur-8d4cf97939be1c83ea9fa47914a186cf21c3c3f4.tar.gz |
Genesis commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..40a21c785564 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = liblux + pkgdesc = C library to interact with backlight brightness + pkgver = 1.0.3 + pkgrel = 1 + url = https://git.thomasvoss.com/liblux + arch = x86_64 + arch = i686 + license = BSD + makedepends = git + makedepends = tup-git + provides = liblux + conflicts = liblux + source = liblux::git+git://git.thomasvoss.com/liblux.git#tag=v1.0.3 + b2sums = SKIP + +pkgname = liblux diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c36d61f3fff3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Thomas Voss <mail@thomasvoss.com> +pkgname=liblux +pkgver=1.0.3 +pkgrel=1 +pkgdesc="C library to interact with backlight brightness" +arch=('x86_64' 'i686') +url="https://git.thomasvoss.com/liblux" +license=('BSD') +makedepends=('git' 'tup-git') +provides=("$pkgname") +conflicts=("$pkgname") +source=("$pkgname::git+git://git.thomasvoss.com/liblux.git#tag=v$pkgver") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --tags --long | sed 's/^v//; s/-.*//' +} + +build() { + cd $pkgname + tup +} + +package() { + cd $pkgname + make DESTDIR="$pkgdir" PREFIX=/usr install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} |