blob: 19f02fa176a11ee99059069198217b7074c1fd57 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $Id: PKGBUILD 184267 2013-05-05 08:27:00Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Massimiliano Torromeo <massimiliano DOT torromeo AT google mail service>
pkgbase=virtuoso
pkgname=('virtuoso' 'virtuoso-base')
pkgver=6.1.6
pkgrel=2
arch=('i686' 'x86_64')
url='http://virtuoso.openlinksw.com/wiki/main/Main/'
license=('GPL')
makedepends=('libldap' 'bison' 'flex' 'gperf' 'net-tools' 'libxml2' 'optipng')
options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgbase}/${pkgbase}-opensource-${pkgver}.tar.gz"
'automake113.patch')
md5sums=('3991149c570f3738c3e819ce603e487f'
'570043e1b5f4acd9826732f002941c12')
prepare() {
cd ${pkgbase}-opensource-${pkgver}
optipng -quiet -force -fix appsrc/ODS-Wiki/http/images/opts_16.png
patch -p1 -i "${srcdir}"/automake113.patch
}
build() {
cd ${pkgbase}-opensource-${pkgver}
./autogen.sh
./configure --with-layout=debian \
--program-transform-name='s/isql$$/isql-vt/;s/isqlw/isqlw-vt/' \
--with-readline
make
}
package_virtuoso-base() {
pkgdesc='A scalable cross-platform server of virtuoso (very minimal installation)'
depends=('libldap')
# install server
cd ${pkgbase}-opensource-${pkgver}/binsrc/virtuoso
make DESTDIR=${pkgdir} install
# install driver
cd ${srcdir}/${pkgbase}-opensource-${pkgver}/binsrc/driver
make DESTDIR=${pkgdir} install
# Install some useful tools; rename to avoid conflicts with unixodbc
for bin in isql isqlw; do
install -Dm755 ${srcdir}/${pkgbase}-opensource-${pkgver}/binsrc/tests/$bin \
${pkgdir}/usr/bin/$bin-vt
done
}
package_virtuoso() {
pkgdesc='A scalable cross-platform server that combines SQL/RDF/XML Data Management with Web Application Server and Web Services Platform functionality'
depends=('virtuoso-base' 'libxml2')
cd ${pkgbase}-opensource-${pkgver}
make DESTDIR=${pkgdir} install
# remove conflicts with virtuoso-base
rm "${pkgdir}"/usr/bin/isql{,w-vt}
rm "${pkgdir}"/usr/bin/virtuoso-t
rm "${pkgdir}"/usr/lib/libvirtuoso-t.a
rm "${pkgdir}"/usr/lib/virtodbc.{a,so}
rm "${pkgdir}"/usr/lib/virtodbc_r.{a,so}
rm "${pkgdir}"/usr/lib/virtodbcu.{a,so}
rm "${pkgdir}"/usr/lib/virtodbcu_r.{a,so}
}
|