blob: c028b85adc290b0dd80004e6d45350806d5a3835 (
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
40
41
42
43
|
# $Id: PKGBUILD 156152 2012-04-14 16:31:07Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
pkgname=xbase
pkgver=2.0.0
pkgrel=2
pkgdesc="An XBase compatible C++ class library"
arch=('i686' 'x86_64' 'mips64el')
url='http://linux.techass.com/projects/xdb/'
license=('LGPL')
depends=('bash' 'gcc-libs')
options=('!libtool')
source=("http://downloads.sourceforge.net/xdb/${pkgname}-${pkgver}.tar.gz"
'fix-build.patch'
'gcc43.patch'
'gcc47.patch')
md5sums=('9b29362031716a12491beb9f8cc882f2'
'f66c1d19a51552b1748ab9158156b103'
'0d5a59a59eb2c79d172bd4339de35372'
'879bf5107605eee2cbec2dca116edac6')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i "${srcdir}/fix-build.patch"
patch -p1 -i "${srcdir}/gcc43.patch"
patch -p1 -i "${srcdir}/gcc47.patch"
# Workaround to build on x86_64
./configure --host=i686-pc-linux-gnu --prefix=/usr
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -k check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|