archrelease: copy trunk to extra-x86_64
[arch-packages.git] / dmapi / trunk / PKGBUILD
blob72c5267b9e43340d573e500b8dacbc3183b60a27
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 pkgname=dmapi
4 pkgver=2.2.12
5 pkgrel=5
6 pkgdesc="Data migration API"
7 arch=('x86_64')
8 url="http://oss.sgi.com/projects/xfs/"
9 license=('GPL')
10 depends=('glibc')
11 makedepends=('xfsprogs')
12 provides=('xfsdmapi')
13 conflicts=('xfsdmapi')
14 replaces=('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)
18 prepare() {
19   cd $pkgname-$pkgver
20   patch -p1 -i ../dmapi-headers.patch # Fix build (Gentoo)
23 build() {
24   cd dmapi-$pkgver
25   [ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
26   export INSTALL_USER=root
27   export INSTALL_GROUP=root
28   export DEBUG=-DNDEBUG
29   autoconf
30   ./configure --prefix=/usr
31   make
34 package() {
35   cd dmapi-$pkgver
36   make DIST_ROOT="$pkgdir" install install-dev
37   # the static lib
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
41   # kill libexec dir
42   rm -rf "$pkgdir"/usr/libexec
44 sha256sums=('b18e34f47374f6adf7c164993c26df36986a009b86aa004ef9444102653aea69'
45             'c5935312dd4d77156da023776c93036fa7989ce78ff8b9f6d9421c31a5535647')