pkgbuilds/aufs3-util/PKGBUILD

39 lines
831 B
Text
Raw Permalink Normal View History

2013-10-05 10:53:31 +02:00
# Maintainer: Calimero <calimerotekni@free.fr>
pkgname=aufs3-util
_gitbranch=3.9
2014-04-23 22:40:53 +02:00
pkgver=20140414
2014-02-02 14:23:42 +01:00
pkgrel=1
2013-10-05 10:53:31 +02:00
pkgdesc="Another Unionfs Implementation that supports NFS branches"
arch=('i686' 'x86_64')
url="http://aufs.sourceforge.net/"
license=('GPL2')
makedepends=('linux-drd' 'git')
2013-10-05 10:53:31 +02:00
replaces=('aufs2-util')
source=("${pkgname}::git://git.code.sf.net/p/aufs/aufs-util#branch=aufs${_gitbranch}")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
date -d @$(git log -n1 --pretty=format:%ct) '+%Y%m%d'
}
2014-04-23 22:40:53 +02:00
prepare () {
2013-10-05 10:53:31 +02:00
cd "${srcdir}/${pkgname}"
sed -i 's/($|\\\\.x)/($|\\\\.x|-[0-9]*$)/' ver.c
2014-04-23 22:40:53 +02:00
}
build() {
cd "${srcdir}/${pkgname}"
2013-10-05 10:53:31 +02:00
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
#fixes for the archlinux /usr/bin move
mv "${pkgdir}"/sbin/* "${pkgdir}"/usr/bin/
rmdir "${pkgdir}"/sbin
}