summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e25e698c4d298ee2d3af67c88cf4b57a85858e78 (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: Tomás Duarte <tomas@mustachedsquid.com>
_pkgname=pacman-zfs-hook
pkgname=${_pkgname}-git
pkgver=r1.e1b097a
pkgrel=2
pkgdesc="Pacman ZFS Hook to create ZFS Snapshots on Pacman transactions."
arch=('x86_64')
url="https://github.com/RileyInkTheCat/Pacman-ZFS-Hook"
license=('BSD')
depends=('bash' 'pacman')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}::git+${url}")
md5sums=('SKIP')

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

package() {
	cd "${pkgname}"
	make DESTDIR="$pkgdir/" install
}