blob: 482ff364ae3bd3247f283af6012fa80e163050b6 (
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
37
38
39
|
# $Id: PKGBUILD 197910 2013-10-30 11:37:30Z allan $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=dmapi
pkgver=2.2.12
pkgrel=2
pkgdesc="Data migration API"
arch=('i686' 'x86_64' 'mips64el')
url="http://oss.sgi.com/projects/xfs/"
license=('GPL')
depends=('glibc')
makedepends=('xfsprogs')
provides=('xfsdmapi')
conflicts=('xfsdmapi')
replaces=('xfsdmapi')
source=("ftp://oss.sgi.com/projects/xfs/cmd_tars/$pkgname-$pkgver.tar.gz")
build() {
cd $srcdir/dmapi-$pkgver
[ "$CARCH" = "x86_64" ] && export CFLAGS="$CLFAGS -fPIC"
export INSTALL_USER=root
export INSTALL_GROUP=root
export DEBUG=-DNDEBUG
autoconf
./configure --prefix=/usr
make
}
package() {
cd $srcdir/dmapi-$pkgver
make DIST_ROOT=$pkgdir install install-dev
# 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
}
md5sums=('cd825d4e141c16011367e0a0dd98c9c5')
|