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 sha256sums=('b18e34f47374f6adf7c164993c26df36986a009b86aa004ef9444102653aea69'
45 'c5935312dd4d77156da023776c93036fa7989ce78ff8b9f6d9421c31a5535647')