summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd8a149c66447c859bde7ce165585c2bd79e79b9 (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
29
# Maintainer: Antoine Damhet <antoine.damhet@lse.epita.fr>
pkgname=diskfile-git
pkgdesc="Expose a disk block device as a regular file (FUSE)"
pkgver=r19.5cb6875
pkgrel=1
provides=('diskfile')
arch=('i386' 'x86_64')
license=('Simplified BSD')
url="https://github.com/vasi/diskfile"
depends=('fuse')
source=("git+https://github.com/vasi/diskfile.git")
md5sums=('SKIP')
_gitname="diskfile"

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

build() {
	cd "$srcdir/$_gitname"
	make
}

package() {
	cd "$srcdir/$_gitname"
	mkdir -p "$pkgdir/usr/bin"
	install -m 755 diskfile "$pkgdir/usr/bin/diskfile"
}