summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrançois Garillot2018-04-22 18:56:25 -0700
committerFrançois Garillot2018-04-22 18:56:25 -0700
commit96c2b6902dc740f7e6dd288349df22c0b2d263ef (patch)
treec7d4430a1a9d903ab0ddf9dda5616cd2e640f688 /PKGBUILD
downloadaur-96c2b6902dc740f7e6dd288349df22c0b2d263ef.tar.gz
First version for nfusr
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c473ac59b7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: François Garillot <francois[@]garillot.net>
+
+pkgname=nfusr-git
+pkgver=r.
+pkgrel=1
+pkgdesc="nfusr is a userspace FUSE client for accessing NFSv3 servers based on libnfs."
+license=('BSD')
+url='https://github.com/facebookincubator/nfusr'
+arch=('i686' 'x86_64')
+provides=('nfusr')
+conflicts=('nfusr')
+depends=('libnfs')
+makedepends=('git')
+
+_gitroot="git://github.com/facebookincubator/nfusr.git"
+_gitname="nfusr"
+
+pkgver() {
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $srcdir/$pkgname-build
+ ./bootstrap
+}
+
+prepare() {
+ cd $srcdir
+ msg "Connecting to the GIT server...."
+ if [[ -d $srcdir/$_gitname ]] ; then
+ cd $_gitname
+ git checkout master
+ git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot $_gitname
+ fi
+
+ rm -rf $srcdir/$pkgname-build
+ git clone $srcdir/$_gitname $srcdir/$pkgname-build
+ cd $srcdir/$pkgname-build
+ patch -Np1 -i "${srcdir}/../functional.patch"
+}
+
+package() {
+ cd $srcdir/$pkgname-build/
+ ./configure
+ make
+ make DESTDIR="$pkgdir" install
+}