summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 309b4c0f0f01f48650188feeb3388e3bba3ac431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Cyrinux <pkgbuilds AT levis DOT name>

pkgname=wluma-als-emulator-git
_gitname=wluma-als-emulator
pkgver=master
pkgrel=1
pkgdesc="Light sensor emulator for wluma, write lux from webcam or time based to a file"
license=(MIT)
url=https://github.com/cyrinux/wluma-als-emulator
depends=()
optdepends=('wluma' 'python-pillow' 'ffmpeg')
arch=(any)
makedepends=('git')
conflicts=('fake-light-sensor' 'fake-light-sensor-git')
provides=('wluma-als-emulator')
source=('git://github.com/cyrinux/wluma-als-emulator')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/wluma-als-emulator"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/wluma-als-emulator"
    install -D -m0755 \
        "${srcdir}/wluma-als-emulator/wluma-als-emulator" \
        "$pkgdir/usr/bin/wluma-als-emulator"
}