summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c9c3af818a0f1918ffc752fe238a0b8601241db (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
pkgname=('libvhdi')
_realname=libvhdi
pkgver=20160424
pkgrel=1
pkgdesc="Library and tools to access the Virtual Hard Disk (VHD) image format" 
url="https://github.com/libyal/libvhdi/"
arch=('any')
license=('LGPLv3+')

provides=('libvhdi' 'python2-libvhdi' 'python3-libvhdi')
depends=('python2' 'python' 'fuse')
makedepends=('python2' 'python' 'gcc' 'git' 'automake' 'autoconf' 'gettext' 'libtool' 'pkg-config' 'fuse')
source=(https://github.com/libyal/${_realname}/archive/${pkgver}.zip)

prepare() {
  cd $srcdir/${_realname}-${pkgver}

  ./synclibs.sh
  ./autogen.sh
}

build() {
  cd $srcdir/${_realname}-${pkgver}
  ./configure --prefix=/usr --enable-python2 --enable-python3
  make
}

#Check will break ./configure options
#check() {
#  cd $srcdir/${_realname}-${pkgver}
#  ./runtests.sh 
#}

package_libvhdi() {
  cd $srcdir/${_realname}-${pkgver}
  make DESTDIR=${pkgdir} install
}

#setup.py will break ./configure options
#package_python2-libvhdi() {
#  cd $srcdir/${_realname}-${pkgver}
#  python2 setup.py install --root="${pkgdir}"
#}

md5sums=('1e70dc38ab301c13f3dcef8913efd81f')