OCaml 4.13.1 rebuild
[arch-packages.git] / dmapi / trunk / PKGBUILD
blob7ce24f243335f8f36e74f0b5381a09da84905295
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 pkgname=dmapi
4 pkgver=2.2.12
5 pkgrel=4
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 md5sums=('cd825d4e141c16011367e0a0dd98c9c5'
45          '6360c428bb89a1585669c3cf7a632208')