/
PKGBUILD
43 lines (36 loc) · 1.26 KB
/
PKGBUILD
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
pkgname=ktorrent
pkgver=5.1.0
pkgrel=1
ktorver=5.1
pkgdesc="A BitTorrent program for KDE"
arch=('x86_64')
url="http://ktorrent.pwsp.net/"
license=('GPL2')
depends=('kdelibs4support' 'ki18n' 'kiconthemes' 'kio' 'knotifications' 'knotifyconfig'
'kconfig' 'kconfigwidgets' 'kcoreaddons' 'kdbusaddons' 'kcrash' 'kcmutils' 'kparts'
'kservice' 'solid' 'kwidgetsaddons' 'kwindowsystem' 'kxmlgui' 'kross' 'karchive' 'kitemviews' 'kdnssd'
'taglib' 'libktorrent' 'plasma-workspace' 'kdewebkit' 'syndication')
makedepends=('extra-cmake-modules' 'boost' 'kdoctools')
install=ktorrent.install
groups=('network')
options=('libtool')
source=("https://download.kde.org/stable/ktorrent/${ktorver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('3c57882f78006dcec3c5fb243479e995cc541e51e6acded5bf98a09900c486a3')
prepare() {
cd ${pkgname}-${pkgver}
#sed -i 's|TARGETS ktorrent_app ${INSTALL_TARGETS_DEFAULT_ARGS}|TARGETS ktorrent_app ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}|g' ktorrent/CMakeLists.txt
}
build() {
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
package() {
cd build
make DESTDIR=${pkgdir} install
}