blob: 49f8dcee5c4c9ada3b7d7e724712178dda4bfd46 (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Ewout van Mansom <ewout@vanmansom.name>
# Contributor: Janis Jansons <aur@janhouse.lv>
pkgname=cecdaemon-devel
pkgver=r4.444ee75
pkgrel=4
pkgdesc="CEC Daemon for linux media centers (development version)"
arch=('any')
url="https://github.com/simons-public/cecdaemon"
license=('BSD')
depends=('python' 'python-importlib-metadata' 'libcec' 'python-cec-git' 'python-uinput' 'python-pyudev')
provides=('cecdaemon')
conflicts=('cecdaemon' 'cecdaemon-git')
makedepends=('git' 'python-setuptools')
source=(
'cecdaemon-devel::git+https://github.com/simons-public/cecdaemon.git'
'modules-load.conf'
'pr6.patch::https://patch-diff.githubusercontent.com/raw/simons-public/cecdaemon/pull/6.patch'
)
sha256sums=('SKIP'
'a771c9695d7283f7771adc00b680bd27391e6ac00e9fd026f4796067ee9a87eb'
'3474724afc77ac73032e26e53a0e0a3a20ab18044baa5f023e586162e669212c')
b2sums=('SKIP'
'4f298ba1d1fdc19f5b90ea8d9292be9a44c85567995ea14136e401d39ce3c159b43be50f0043d1f10bed6892d24d8f7a6bf04f5a448ee2044f43b07c4c66cee0'
'f33b961af8870c7091570f225c2cc1e3be0671290202123534cf38eaf418bb94c114ccd07cdd126ef8da400ef26eaf0f877e06f5c7a565d0c48200351b2f99b1')
backup=(etc/cecdaemon.conf)
prepare() {
cd "${pkgname}"
sed -i 's/cec.conf/cecdaemon.conf/' 'examples/cecdaemon.service-example'
patch --forward --strip=1 --input="${srcdir}/pr6.patch"
}
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${pkgname}"
python setup.py build
}
package() {
cd "${pkgname}"
python setup.py install --root="${pkgdir}"
install -Dm0644 "${srcdir}/modules-load.conf" "${pkgdir}/usr/lib/modules-load.d/cecdaemon.conf"
install -Dm0644 "examples/cecdaemon.conf-example" "${pkgdir}/etc/cecdaemon.conf"
install -Dm0644 "examples/cecdaemon.service-example" "${pkgdir}/usr/lib/systemd/system/cecdaemon.service"
}
|