blob: 43f9ca7ab2a07c6577aa819475647b64d6c49c62 (
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
|
# Maintainer: Victor <victor@xirion.net>
pkgname=batify-git
_pkgname=batify
_xpub=xpub
pkgver=1.0.r15.g691dc5b
pkgrel=1
pkgdesc='One udevrules file triggering plug and battery level notifications (multi-X sessions support).'
arch=('any')
url="https://github.com/Ventto/${_pkgname}.git"
license=('MIT')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=('libnotify' 'xpub')
optdepends=('notification-daemon')
source=("git+https://github.com/Ventto/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
# cutting off 'v' prefix that presents in the git tag
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/$_pkgname"
install -Dm644 99-${_pkgname}.rules ${pkgdir}/etc/udev/rules.d/99-${_pkgname}.rules
}
|