APKBUILD 837 Bytes
Newer Older
dai9ah's avatar
dai9ah committed
1 2 3
# Contributor: dai9ah <dai9ah@protonmail.com>
# Maintainer: dai9ah <dai9ah@protonmail.com>
pkgname=btfs
Leo's avatar
Leo committed
4 5
pkgver=2.20
pkgrel=0
dai9ah's avatar
dai9ah committed
6
pkgdesc="Bittorrent filesystem based on FUSE"
Leo's avatar
Leo committed
7
options="!check" # No testsuite
dai9ah's avatar
dai9ah committed
8 9 10 11 12 13
url="https://github.com/johang/btfs"
arch="all"
license="GPL-3.0-or-later"
depends="python3"
makedepends="autoconf automake curl-dev fuse-dev libtorrent-rasterbar-dev"
subpackages="$pkgname-doc"
Leo's avatar
Leo committed
14
source="$pkgname-$pkgver.tar.gz::https://github.com/johang/btfs/archive/v$pkgver.tar.gz"
dai9ah's avatar
dai9ah committed
15

Leo's avatar
Leo committed
16 17
prepare() {
	default_prepare
dai9ah's avatar
dai9ah committed
18
	autoreconf -vfi
Leo's avatar
Leo committed
19 20 21
}

build() {
dai9ah's avatar
dai9ah committed
22 23 24
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
Leo's avatar
Leo committed
25
	make
dai9ah's avatar
dai9ah committed
26 27 28 29 30 31
}

package() {
	make DESTDIR="$pkgdir" -C "$builddir" install
}

Leo's avatar
Leo committed
32
sha512sums="6a0e0abbe07329daf810fddf2557892ec69659a381c445f7a3ada4a69e422c371d587623a9cb5f079f0738d00fca579af56f37036a2ba8060891d167fa9bb947  btfs-2.20.tar.gz"