diff options
author | Zesko | 2022-08-28 11:54:29 +0200 |
---|---|---|
committer | Zesko | 2022-08-28 11:54:29 +0200 |
commit | d575ee8e936e51d4e9e6fdc41a0c5643aeb61ad1 (patch) | |
tree | 1e7b83c2cd8a45586214159c5e188a7545778e4f | |
parent | d89ffc92d3570d90fc9dd124c5caffa6d9339282 (diff) | |
download | aur-d575ee8e936e51d4e9e6fdc41a0c5643aeb61ad1.tar.gz |
Fixed PKGBUILD
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 21 insertions, 16 deletions
@@ -1,14 +1,16 @@ pkgbase = snapper-snapshot-notification-git pkgdesc = The Desktop notification will appear when booting into Btrfs snapshot using Overlayfs. - pkgver = 1.0.0 + pkgver = r4.94a129c pkgrel = 1 url = https://gitlab.com/Zesko/snapper-snapshot-notification.git arch = any - license = MIT + license = GPL3 makedepends = git - makedepends = libnotify + depends = bash + depends = libnotify provides = snapper-snapshot-notification + conflicts = snapper-snapshot-notification source = git+https://gitlab.com/Zesko/snapper-snapshot-notification.git - sha256sums = SKIP + sha1sums = SKIP pkgname = snapper-snapshot-notification-git @@ -1,21 +1,24 @@ -_pkgname=snapper-snapshot-notification -pkgname="${_pkgname}-git" -pkgver=1.0.0 +# Maintainer: Zesko +pkgname=snapper-snapshot-notification-git +pkgver=r4.94a129c pkgrel=1 pkgdesc="The Desktop notification will appear when booting into Btrfs snapshot using Overlayfs." arch=("any") -url="https://gitlab.com/Zesko/${_pkgname}.git" +url="https://gitlab.com/Zesko/snapper-snapshot-notification.git" license=("GPL3") -makedepends=('git' 'libnotify') -provides=("snapper-snapshot-notification") +depends=('bash' 'libnotify') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") source=(git+${url}) -sha256sums=("SKIP") +sha1sums=("SKIP") +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} package() { - install -dv "${pkgdir}/usr/bin" - install -dv "${pkgdir}/etc/xdg/autostart" - cd "$srcdir/$_pkgname" - cp usr/bin/snapper-detects-snapshot $pkgdir/usr/bin/ - cp etc/xdg/autostart/snapper-detects-snapshot.desktop $pkgdir/etc/xdg/autostart/ + cd "$srcdir/${pkgname%-git}" + cp -vr usr etc "$pkgdir" } |