summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14e71b8b46aebcca7aa6061554d1c39a17b6b842 (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
# Contributor: GordonGR <ntheo1979@gmail.com>
# Maintainer: josephgbr <rafael.f.f1@gmail.com>

_pkgname=liblrdf
pkgname=lib32-${_pkgname}
pkgver=0.6.1
pkgrel=1
pkgdesc="A library for the manipulation of RDF file in LADSPA plugins (32 bit)"
arch=('x86_64')
url="https://github.com/swh/LRDF"
depends=('lib32-raptor' "$_pkgname")
makedepends=('gcc-multilib')
license=('GPL2')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/swh/LRDF/archive/v${pkgver}.tar.gz")
md5sums=('8bb0ac7e8fe1a5a90083c89776bd3deb')

prepare() {
mv -v "LRDF-${pkgver}" "${_pkgname}-${pkgver}"
cd "${_pkgname}-${pkgver}"
autoreconf -vfi
sed -e 's,raptor.h,raptor2/raptor.h,' -i lrdf.h
}

build() {
cd "${_pkgname}-${pkgver}"

export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

./configure --prefix=/usr --libdir=/usr/lib32
make
}

package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share}
}