archrelease: copy trunk to extra-x86_64
[arch-packages.git] / redland / trunk / PKGBUILD
blob225ed1a8ea471d75c0bffe9e557f7ea5b5676057
1 # Maintainer: Tom Gundersen <teg@jklm.no>
2 # Contributor: AndyRTR <andyrtr@archlinux.org>
3 # Contributor: Francois Charette <francois.archlinux.org>
5 pkgbase=redland
6 epoch=1
7 # maybe rename redland-storage-mysql to redland-storage-mariadb or add a provide tag
8 pkgname=('redland' 'redland-storage-mysql' 'redland-storage-postgresql' 'redland-storage-virtuoso' 'redland-storage-sqlite')
9 pkgver=1.0.17
10 pkgrel=8
11 url="http://librdf.org/"
12 license=("GPL")
13 arch=('x86_64')
14 makedepends=('rasqal' 'raptor' 'postgresql-libs' 'mariadb-libs' 'unixodbc' 'sqlite')
15 source=(http://download.librdf.org/source/$pkgname-$pkgver.tar.gz{,.asc}
16         rpath.diff)
17 sha256sums=('de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681'
18             'SKIP'
19             '9ddf9f7581f5194d73ad908f3b26354c70d3079a7a87c8add8a0d0e4c6974fec')
20 validpgpkeys=('F879F0DEDA780198DD08DC6443EC92504F71955A') # Dave Beckett
22 build() {
23   cd "${srcdir}/${pkgname}-${pkgver}"
24   ./configure --prefix=/usr \
25         --enable-release \
26         --disable-static \
27         --with-raptor=system \
28         --with-rasqal=system \
29         --with-sqlite=3 \
30         --with-bdb=no
32   # nuke rpath
33   patch -Np0 -i "${srcdir}/rpath.diff"
35   make
38 package_redland() {
39  pkgdesc="Library that provides a high-level interface to RDF data"
40  depends=('rasqal>=0.9.26' 'raptor>=2.0.6' 'libltdl')
42   cd "${srcdir}/${pkgbase}-${pkgver}"
43   make DESTDIR="${pkgdir}" install
44   rm -rf "${pkgdir}/usr/lib/redland"
47 package_redland-storage-mysql() {
48  pkgdesc="MySQL storage support for Redland"
49  depends=('redland' 'mariadb-libs')
51   cd "${srcdir}/${pkgbase}-${pkgver}"
52   install -dm755 "${pkgdir}/usr/lib/redland"
53   install -m755 src/.libs/librdf_storage_mysql.so "${pkgdir}/usr/lib/redland/librdf_storage_mysql.so"
56 package_redland-storage-postgresql() {
57  pkgdesc="PostgreSQL storage support for Redland"
58  depends=('redland' 'postgresql-libs')
60   cd "${srcdir}/${pkgbase}-${pkgver}"
61   install -dm755 "${pkgdir}/usr/lib/redland"
62   install -m755 src/.libs/librdf_storage_postgresql.so "${pkgdir}/usr/lib/redland/"
65 package_redland-storage-virtuoso() {
66  pkgdesc="Virtuoso storage support for Redland"
67  depends=('redland' 'unixodbc')
69   cd "${srcdir}/${pkgbase}-${pkgver}"
70   install -dm755 "${pkgdir}/usr/lib/redland"
71   install -m755 src/.libs/librdf_storage_virtuoso.so "${pkgdir}/usr/lib/redland/"
74 package_redland-storage-sqlite() {
75  pkgdesc="SQLite storage support for Redland"
76  depends=('redland' 'sqlite3')
78   cd "${srcdir}/${pkgbase}-${pkgver}"
79   install -dm755 "${pkgdir}/usr/lib/redland"
80   install -m755 src/.libs/librdf_storage_sqlite.so "${pkgdir}/usr/lib/redland/"