summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9732f147288b8f47954ec6b7763f248cf1920f7a (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
# Maintainer: Zesko
pkgname=btrfs-desktop-notification-git
pkgver=r49.ce13e98
pkgrel=1
pkgdesc="Notifies you on the desktop when booting into a read-only system or when BTRFS warning/error messages appear in the dmesg log."
arch=('any')
url="https://gitlab.com/Zesko/btrfs-desktop-notification.git"
license=('GPL3')
depends=('libnotify' 'systemd')
optdepends=('dunst')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" "snapper-snapshot-notification-git")
backup=("etc/${pkgname%-git}.conf")
source=('git+https://gitlab.com/Zesko/btrfs-desktop-notification.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -dm 755 "usr/share/doc/${pkgname%-git}/"
	cp -r screenshots README.md CHANGELOG.md "usr/share/doc/${pkgname%-git}/"
	cp -r usr etc "$pkgdir"
}