summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75b0513ebdfec52b7f2807c96eea2cbb997d7e17 (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
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

gitname=s3fs-c
pkgname=${gitname}-git
pkgver=57.9c6d31b
pkgrel=1
pkgdesc="Fork of s3fs"
arch=('i686' 'x86_64')
url="https://github.com/tongwang/s3fs-c"
license=('GPL2')
depends=('fuse' 'glib2' 'libxml++' 'mime-types')
makedepends=('git')
conflicts=('s3fs')
provides=('s3fs')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
	 cd "${srcdir}/${gitname}"
	 local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
	 printf "%s" "${ver//-/.}"
}

build() {
	 cd "${srcdir}/${gitname}"
	 ./configure --prefix=/usr || return 1
	 make || return 1
}

package() {
	 cd "${srcdir}/${gitname}"
	 make DESTDIR="${pkgdir}/" install
}