summaryrefslogtreecommitdiffstats
path: root/kde/soprano/Pkgfile
blob: e9648825a557bbc853491ba7d0e67b0c02d02ba8 (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
# Description: Librairie audio pour KDE4
# URL: http://soprano.sourceforge.net/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: jdk, cmake, qt, clucene, redland, virtuoso, libiodbc, doxygen, libpostgresql, mysqlclient, unixodbc
# Run on: qt,clucene,virtuoso,libiodbc,redland

name=soprano
version=2.6.0
release=2
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.bz2)

build() {
	source /etc/blfs-bootscripts
        wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
        tar xvf $scripts-$scriptsversion.tar.bz2

	source /etc/profile
	cd $SRC
	mkdir build
	cd build

	cmake ../$name-$version \
    		-DCMAKE_BUILD_TYPE=Release \
    		-DCMAKE_SKIP_RPATH=OFF \
    		-DCMAKE_INSTALL_PREFIX=/usr
	make
	make DESTDIR=$PKG install
	
	cd ../$scripts-$scriptsversion
	make DESTDIR=$PKG install-soprano

	install -m755 -d $PKG/srv/soprano
	
	mkdir -p $PKG/etc/sysconfig
	mkdir -p $PKG/etc/rc.d/init.d

cat > $PKG/etc/sysconfig/soprano << "EOF"
# Begin /etc/sysconfig/soprano
SOPRANO_STORAGE="/srv/soprano"
SOPRANO_BACKEND="virtuosobackend"        # virtuoso, sesame2, redland
SOPRANO_OPTIONS="--with-index"           # using CLucene index
##SOPRANO_OPTIONS="$SOPRANO_OPTIONS --port 4711"  # Default port is 5000
# End /etc/sysconfig/soprano
EOF
}