summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc66fc2590437af0ed8b95f263843757f6df3972 (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
# Maintainer: LightQuantum <self at lightquantum dot me>
pkgname=ossfs-git
_pkgname=ossfs
pkgver=1.80.6.r0.g9640e79
pkgrel=1
pkgdesc='The OSSFS enables you to mount Alibaba Cloud OSS buckets to a local file in Linux/Mac OS X systems.'
arch=('x86_64')
url="https://github.com/aliyun/ossfs"
license=('GPL2')
makedepends=('git')
depends=('fuse' 'man' 'libxml2' 'curl')
source=("git+https://github.com/aliyun/$_pkgname")
md5sums=('SKIP')

pkgver() {
    cd $_pkgname
    git describe --long --tags |sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  ./autogen.sh
  ./configure --prefix=/usr
  make $MAKEFLAGS
}

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