blob: 3d8cded6004f167f038fd4ae21b1745c20e093ac (
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
|
# Maintainer: Bart Libert <bart plus aur at libert dot email>
_pkgname=headsetcontrol-notificationd-bash
pkgname=$_pkgname-git
pkgver=r4.95c43eb
pkgrel=1
pkgdesc='Headset battery notification daemon (rewritten in bash)'
arch=('any')
url='https://gitlab.com/simon.ingelsson/headsetcontrol-notificationd'
license=('GPL-3.0-only')
depends=('bash' 'headsetcontrol' 'libnotify')
makedepends=('git')
source=("$_pkgname::git+$url")
sha256sums=('SKIP')
conflicts=('headsetcontrol-notificationd-git')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
sed -i "s@ExecStart=/usr/local/bin@ExecStart=/usr/bin@" headsetcontrol-notifyd.service
}
package() {
cd "$_pkgname"
install -Dvm755 headsetcontrol-notificationd -t "$pkgdir/usr/bin/"
install -Dvm644 headsetcontrol-notifyd.service -t "$pkgdir/usr/lib/systemd/user"
}
|