summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20f29047b82c53c5c7eb3e496da9eda1c5aaf413 (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.24.r3.g3210332
pkgrel=2
pkgdesc="bittorrent filesystem"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/johang/btfs"
license=('GPL')
depends=('fuse' 'libtorrent-rasterbar' 'curl' 'boost')
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+https://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 --prefix=/usr
  make
}

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