blob: 83d43d144b1409efc282d7466fbfcf0463c23080 (
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
|
# Maintainer: Klimenko Maxim <klimenkomaximsergievich@gmail.com>
# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
pkgname=udev-notify-bzr
pkgver=r40
pkgrel=1
pkgdesc="Visual hardware notifications for Linux. (Bazaar version)"
arch=('i686' 'x86_64')
url="https://launchpad.net/udev-notify"
license=('GPL3')
depends=('libnotify' 'udev' 'python-notify2' 'python-pyudev')
makedepends=('bzr')
source=('python3::bzr+lp:~i026e/udev-notify/python3')
sha1sums=('SKIP')
conflicts=('udev-notify')
provides=('udev-notify')
_bzrmod="python3"
pkgver() {
cd "${_bzrmod}"
printf "r%s" "$(bzr revno)"
}
prepare() {
cd "${_bzrmod}"
# Prepare Makefile
sed -e 11d -e '/debian-package.sh/d' -e '/pyudev/d' -e 's|\./build/debian|$(DESTDIR)|g' -i Makefile
# Force use python2
sed 's|env python|env python|g' -i src/udev-notify.py
}
package() {
make -C "${_bzrmod}" DESTDIR="${pkgdir}"
}
|