summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff104f6cfa2f695fe0a7b38f6ca5c97d84647889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
}