summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa885f625d6dd598b54b72f42db5ef2b04ac427f (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
# Maintainer: aligator <aligator at-symbol suncraft-server dot de>

_pkgname='befstools'
pkgname=${_pkgname}-git
pkgver=0.2.r14.g2e8c6dc
pkgver() {
  cd  ${_pkgname}
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
provides=(${_pkgname})
pkgrel=1
pkgdesc="utilities to hande BeOS file systems in Linux "
arch=("x86_64" "i686")
url="https://github.com/luisbg/befstools"
license=("GPL3")
depends=("systemd-libs")
makedepends=("make" "autoconf")
source=("git+https://github.com/luisbg/${_pkgname}.git")
sha512sums=('SKIP')

build() {
	cd ${srcdir}/${_pkgname}
	autoreconf -f -i
	./configure
	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR=${pkgdir} install 
	mkdir ${pkgdir}/usr/bin/ ${pkgdir}/usr/share/
	mv ${pkgdir}/usr/local/sbin/* ${pkgdir}/usr/bin/
	mv ${pkgdir}/usr/local/share/* ${pkgdir}/usr/share/
	rm -R ${pkgdir}/usr/local
}