blob: 5129ef5a4685bc3343584609711f42705e3635dc (
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
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Cyrinux <pkgbuilds AT levis DOT name>
pkgname=wluma-als-emulator-git
_pkgname=${pkgname%-git}
pkgver=1.0.0.r11.ga7afd79
pkgrel=2
pkgdesc="Ambient light sensor emulator for wluma"
license=(MIT)
url="https://github.com/cyrinux/${_pkgname}"
depends=('python' 'python-setuptools' 'python-dateutil' 'wluma')
optdepends=(
'python-pillow: for webcam strategy',
'python-requests: for api based strategies',
'ffmpeg: for webcam strategy'
)
arch=(any)
makedepends=('git')
conflicts=('wluma-als-emulator')
provides=('wluma-als-emulator')
source=("git+${url}#branch=develop")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/; s/-/./g'
}
build() {
cd "${_pkgname}"
make build
}
package() {
cd "${_pkgname}"
make install DESTDIR="${pkgdir}"
install -d "$pkgdir/usr/share/doc/$pkgname"
install -m644 docs/* README.rst "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|