summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b13b8e282294943b913fb110ea006aba3de6d12 (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
# Maintainer: Thomas WeiƟschuh <thomas t-8ch de>

pkgname=nbdkit
pkgver=1.24.0
pkgrel=2
pkgdesc="NBD server toolkit"
arch=('i686' 'x86_64')
url="https://github.com/libguestfs/nbdkit"
license=('custom: BSD')
depends=()
optdepends=('libvirt' 'lua' 'tcl' 'perl' 'rust' 'libnbd')
checkdepends=('qemu')
validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0')
_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"
)


build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  autoreconf -i

  ./configure --prefix=/usr --sbindir=/usr/bin
  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}"

  # the provided 1.2.8 plugins link to libselinux which we do not have on Arch
  rm tests/old-plugins/x86_64/Linux/v1.2.8/nbdkit-file-plugin.so
  rm tests/old-plugins/i686/Linux/v1.2.8-2-gd2d934df/nbdkit-file-plugin.so
  # sed -i '/test-old-plugins-.*-v1.2.8-.*\.sh/d' tests/Makefile.am

  make check
}

sha256sums=('908f78525b0f277595b3b65ce2a190810f7964d86efdabf742dbbe3c55c9eb49'
            'SKIP')