blob: 8b37ffae086a9d9bcaa110f9abe77adc7cdc1dfa (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Thomas Weißschuh <thomas t-8ch de>
pkgname=nbdkit
pkgver=1.42.2
pkgrel=1
pkgdesc="NBD server toolkit"
arch=('x86_64')
url="https://gitlab.com/nbdkit/nbdkit/"
license=(BSD-3-Clause)
depends=()
optdepends=(
'lua'
'tcl'
'perl'
'rust'
'go'
'python'
'ocaml'
'libnbd'
'libvirt'
'curl'
'libguestfs'
'libssh'
'libtorrent-rasterbar: for libtorrent support'
'boost: for libtorrent support'
'libselinux'
)
checkdepends=('qemu')
validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0' '71C2CC22B1C4602927D2F3AAA7A16B4A2527436A')
_dldir="${pkgver%.*}"
source=("http://download.libguestfs.org/nbdkit/${_dldir}-stable/nbdkit-${pkgver}.tar.gz"
"http://download.libguestfs.org/nbdkit/${_dldir}-stable/nbdkit-${pkgver}.tar.gz.sig"
)
sha256sums=('670aac6792f2df7ea4f18585a63f2c9a318f9e81cfc371863152f631b0ec4b5c'
'SKIP')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
autoreconf -i
# libtorrent requires boost as a build dependency
if ! pacman -Qi boost >/dev/null 2>&1; then
LIBTORRENT_ARGS=--disable-torrent
fi
./configure --prefix=/usr --sbindir=/usr/bin $LIBTORRENT_ARGS
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
make DESTDIR="$pkgdir" install
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
|