summaryrefslogtreecommitdiffstats
path: root/kde/ktorrent/Pkgfile
blob: d371dce051f76859657d7373bf09e7a408e1c386 (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
# Description: Client Bittorrent sur KDE4
# URL: http://ktorrent.org/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: qca, xorg-libxft, kdebase-runtime, kdebase-workspace, taglib, hicolor-icon-theme, kdepimlibs

name=ktorrent
version=3.3.4

release=1
source=(http://ktorrent.org/downloads/$version/$name-$version.tar.bz2 \
	$name.png  $name.desktop httpserver.patch)

build() {
	cd $name-$version
	patch -Np0 -i $SRC/httpserver.patch	
	cmake . -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_SKIP_RPATH=ON \
                -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
                -DENABLE_MEDIAPLAYER_PLUGIN=false
        make
        make DESTDIR=$PKG install
	mkdir -p $PKG/usr/share/applications
	install -m 644 $SRC/$name.desktop $PKG/usr/share/applications/
	mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps/
	install -m 644 $SRC/$name.png $PKG/usr/share/icons/hicolor/48x48/apps/
}