summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13c5d4b6eb847173b05d04946ff874c867011f7d (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
# Maintainer: Klimenko Maxim <klimenkomaximsergievich@gmail.com>
# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>

pkgname=udev-notify-bzr
pkgver=42
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-bzr')
provides=('udev-notify-bzr')

_bzrmod="python3"

pkgver() {
  cd "${_bzrmod}"
  printf "%s" "${pkgver}"
}

prepare() {
  cd "${_bzrmod}"

  # Prepare Makefile
  sed -e 11d -e '/debian-package.sh/d' -e '/pyudev/d' -e 's|\./build/debian|$(DESTDIR)|g' -i Makefile
}

package() {
  make -C "${_bzrmod}" DESTDIR="${pkgdir}"
}