summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dabbc6ddac259106908a67d038a5ca2d4cfb5b2d (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
# Contributor: Andrew Chen <xor.tux@gmail.com>
# Contributor: Vladimir Kutyavin <vlkut@bk.ru>

pkgname=pxlib
pkgver=0.6.8
pkgrel=1
pkgdesc="Library to read and write Paradox DB files"
arch=('i686' 'x86_64')
license=('GPL')
url="http://pxlib.sourceforge.net/"
depends=('libgsf')
makedepends=('intltool')
source=(http://downloads.sourceforge.net/sourceforge/pxlib/${pkgname}-${pkgver}.tar.gz
        enable-iconv-support.patch)
sha256sums=('5f9b58a5c3d9e5e60faad16dfbc5172ee14ae57a978732378660c0f2c9e74ef9'
            'a91725bcf1f414ed0226635c406ef54bfce5350561412281fa399af59a8d4747')

prepare() {
  cd $srcdir/$pkgname-$pkgver

  patch -p1 -i $srcdir/enable-iconv-support.patch
}

build() {
  cd $srcdir/$pkgname-$pkgver

  touch config.rpath
  autoreconf

  ./configure --prefix=/usr \
              --with-gsf \
              --disable-static

  make
}

package() {
  cd $srcdir/$pkgname-$pkgver

  make DESTDIR=$pkgdir install
}