summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67b67a242f565461e86dc1c9cd9d82d7195db994 (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
# Maintainer: VHSgunzo <vhsgunzo.github.io>
pkgname='udev-notify-git'
pkgver=0.2.r3.g56c0454
pkgrel=1
pkgdesc='Show notifications when any USB device is plugged/unplugged'
arch=('any')
url='https://github.com/VHSgunzo/udev-notify'
license=('MIT')
depends=('libnotify' 'sox' 'usbutils' 'sed' 'coreutils' 'grep' 'gawk' 'util-linux' 'bash')
makedepends=('git' 'make')
optdepends=('espeak-ng')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/VHSgunzo/udev-notify.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd $srcdir/${pkgname%-git}
    make DESTDIR="${pkgdir}" install
}