summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03477c4952f9df129ddab40ed47d72c8dbea8371 (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
30
31
32
33
34
35
36
37
38
39
# Maintainer: Janne Heß <jannehess@gmail.com>

pkgname=archivemount-git
pkgver=0.8.7.gbb2faa8
pkgrel=1
pkgdesc="FUSE filesystem using libarchive"
url="http://www.cybernoi.de/software/${pkgname%-git}/"
license=("GPL2")
depends=("fuse" "libarchive")
makedepends=("automake" "autoconf" "make")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+http://www.cybernoia.de/software/${pkgname%-git}/git")
sha512sums=('SKIP')
arch=("i686" "x86_64")

pkgver() {
	cd git
	git describe --tags --always | sed 's/-[[:digit:]]*-/./g'
}

build() {
	cd git
	aclocal
	autoheader
	automake --add-missing
	autoconf
	./configure
	make
}

package() {
	cd "git"
	install -Dm755 "${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
	make PREFIX="/usr" DESTDIR="${pkgdir}/" install-man
	mv "${pkgdir}/usr/local/share" "${pkgdir}/usr"
	rmdir "${pkgdir}/usr/local"
}