blob: f61b9b616f3fe51ed97941eb6a245691eec80dc3 (
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
52
53
54
55
56
57
58
59
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=triggerhappy
pkgver=0.3.4
pkgrel=0
pkgdesc="A lightweight hotkey daemon"
url="https://github.com/wertarbyte/triggerhappy"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="triggerhappy-$pkgver.tar.gz::https://github.com/wertarbyte/triggerhappy/archive/release/$pkgver.tar.gz
triggerhappy.initd
triggerhappy.confd
"
_builddir="$srcdir"/triggerhappy-release-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
install -D udev/triggerhappy-udev.rules \
"$pkgdir"/lib/udev/rules.d/50-triggerhappy.rules \
|| return 1
install -d "$pkgdir"/etc/triggerhappy/triggers.d || return 1
install triggerhappy.conf.examples \
"$pkgdir"/etc/triggerhappy/triggerhappy.conf || return 1
install -Dm755 "$srcdir"/triggerhappy.initd \
"$pkgdir"/etc/init.d/triggerhappy || return 1
install -Dm644 "$srcdir"/triggerhappy.confd \
"$pkgdir"/etc/conf.d/triggerhappy || return 1
}
md5sums="9719903899b3082e75a7ff6e9c00752d triggerhappy-0.3.4.tar.gz
902daa19d3315296df89c49904cfeca2 triggerhappy.initd
b96c7efb0c27a2d598ebab9cb8dd5dd9 triggerhappy.confd"
sha256sums="68001858df715527326850940a71690fda9d159ac73bed4a580fb7d2ffd61c83 triggerhappy-0.3.4.tar.gz
d54f4e03f0ace48175af502019cad78ebfa3175ac1ab7b3f1a516f74a11be1e0 triggerhappy.initd
1601b34ed30ec11293a353937669d030d811357fa2e0f5eb7ff04874daf91702 triggerhappy.confd"
sha512sums="cf08554a41019019c1142368273dc781c840bb9de81b9a386b4debd34f37816bfe516077f7192779822aa5662b3fadd76a6ff141e7c038b65dd7f51e92135e4c triggerhappy-0.3.4.tar.gz
62eaa739d6c097d5d3b505087dffad28836ac05ed8622152264defda603eb0181d58d8d0c57641adac06e44f3546198241552a3672d6deec136f019f1afa039b triggerhappy.initd
5f31b9736e8ee8a7c8125dd5c14c4cdf515a6d57c36d04b9b1949cdb6150f25ef264ed8ee5e31f0d62de12db151df5aec9a325ff5d5b5ba0b3b7105c76cd07a0 triggerhappy.confd"
|