1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
6 pkgdesc="Data migration API"
8 url="http://oss.sgi.com/projects/xfs/"
11 makedepends=('xfsprogs')
13 conflicts=('xfsdmapi')
15 #source=("ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/$pkgname-$pkgver.tar.gz" dmapi-headers.patch)
16 source=(https://sources.archlinux.org/other/packages/dmapi/dmapi-$pkgver.tar.gz dmapi-headers.patch)
20 patch -p1 -i ../dmapi-headers.patch # Fix build (Gentoo)
25 [ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
26 export INSTALL_USER=root
27 export INSTALL_GROUP=root
30 ./configure --prefix=/usr
36 make DIST_ROOT="$pkgdir" install install-dev
38 install -D -m644 libdm/.libs/libdm.a "$pkgdir"/usr/lib/libdm.a
39 # and the header file, please
40 install -D -m644 include/dmapi.h "$pkgdir"/usr/include/xfs/dmapi.h
42 rm -rf "$pkgdir"/usr/libexec
44 md5sums=('cd825d4e141c16011367e0a0dd98c9c5'
45 '6360c428bb89a1585669c3cf7a632208')