summaryrefslogtreecommitdiffstats
path: root/abs/core/dmapi/PKGBUILD
blob: ab36043a0e259ca5471ae1ca15f817d872fcb2ea (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
# $Id: PKGBUILD 47579 2009-07-24 05:47:49Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=dmapi
pkgver=2.2.10
pkgrel=2
pkgdesc="Data migration API"
arch=(i686 x86_64)
url="http://oss.sgi.com/projects/xfs/"
license=('GPL')
depends=('glibc')
makedepends=('xfsprogs')
provides=('xfsdmapi')
conflicts=('xfsdmapi')
replaces=('xfsdmapi')
options=('!libtool')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz)
md5sums=('c6e4ace10c446bbb92576e5dd19aec24')

build() {
  cd $startdir/src/dmapi-$pkgver
  [ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
  autoconf
  ./configure --prefix=$pkgdir/usr
  make || return 1 
}
package() {
  cd $startdir/src/dmapi-$pkgver
  make prefix=$pkgdir/usr/ install install-dev || return 1
  # the static lib
  install -D -m644 libdm/.libs/libdm.a $pkgdir/usr/lib/libdm.a
  # and the header file, please
  install -D -m644 include/dmapi.h $pkgdir/usr/include/xfs/dmapi.h
  # kill libexec dir
  rm -rf $pkgdir/usr/libexec
}