summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ff104f6cfa2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: jacopo <jacopo[at]autistici[dot]org>
+pkgname=backlight-openrc
+pkgrel=1
+pkgver=b49490c
+pkgdesc="Restore the screen brightness at system startup."
+url="https://git.covolunablu.org/jacopo/backlight-openrc"
+arch=('x86_64' 'i686')
+license=('GPL3')
+depends=('openrc-core')
+source=("git+https://git.covolunablu.org/jacopo/backlight-openrc.git")
+install="$pkgname.install"
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ #printf "%s_%s" "$(date +%Y%m%d)" "$(git log --pretty=format:'%h' -n 1)"
+ git log --pretty=format:'%h' -n 1
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm=755 backlight "$pkgdir/etc/init.d/backlight"
+}