summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ced77e4a12287c8239c1471e43ed0868dadec6a (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
pkgname=btfs-git
pkgver=v2.3.r0.gafcb3e5
pkgrel=1
pkgdesc="bittorrent filesystem"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/johang/btfs"
license=('GPL')
depends=('fuse' 'libtorrent-rasterbar' 'curl')
makedepends=('git')
conflicts=('btfs')
provides=('btfs')
# The git repo is detected by the 'git:' or 'git+' beginning. The branch
# '$pkgname' is then checked out upon cloning, expediating versioning:
#source=('git+https://github.com/falconindy/expac.git'
source=("$pkgname"::'git://github.com/johang/btfs.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  autoreconf -i
  ./configure
  make
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}