diff options
author | patrick96 | 2016-09-07 23:04:22 +0200 |
---|---|---|
committer | patrick96 | 2016-09-07 23:04:22 +0200 |
commit | 255e6dcbcc5bdae64f5e69afbc1c2e8ce32bffc4 (patch) | |
tree | 43d0360a76520d510551ef6889e5c358784a254e /PKGBUILD | |
download | aur-notification-mount-git.tar.gz |
notification-mount-git v1.0.1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e185a970fe6a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Patrick Ziegler <p.ziegler96 at gmail dot com> +_pkgname="notification-mount" +pkgname="${_pkgname}-git" +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Script to show notification for a block device with mount option" +arch=('any') +url="https://github.com/patrick96/$_pkgname" +license=('GPL3') +depends=('python' 'python-gobject' 'python-notify2' 'udevil') +makedepends=('git') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("${_pkgname}::git+${url}.git") +md5sums=("SKIP") + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/$_pkgname" + install -D -m755 "./notification-mount" "$pkgdir/usr/bin/notification-mount" + install -D -m644 ./examples/notification-mount.service \ + "$pkgdir/usr/lib/systemd/user/notification-mount.service" +} + +# vim:set ts=2 sw=2 et: |