desktop/kdenetwork-kget/PKGBUILD
2016-04-17 13:50:48 +01:00

48 lines
1.4 KiB
Bash

# Include global configuration
source ../kdeapps.conf
pkgname="kdenetwork-kget"
arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="Download manager"
url="http://kde.org/applications/internet/kget/"
depends=("kde-runtime" "kdepimlibs4" 'qca' 'kwebkitpart>=0.9.6' 'libktorrent>=1.0.4' 'libmms')
groups=("kde" "kdenetwork" "kde-uninstall")
categories=('network')
conflicts=("kdenetwork-common" "kdenetwork-doc")
install=kdenetwork.install
license=('GPL' 'LGPL' 'FDL')
options=('docs' 'debug')
makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl' 'boost')
source=("$_mirror/kget-$_kdever.tar.xz"
list_view_header_recovery.patch)
sha256sums=(`grep kget-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
'6c48b3111c3ed4f9a5834f69edbf7a60faa92054bdeb6c9cf7ee78da580a3e22')
prepare(){
cd ${srcdir}/kget-$pkgver
# https://bugs.kde.org/show_bug.cgi?id=339513
# Bug 339513 - kget should remember columns' widths on reopen
patch -Np1 -i "${srcdir}/list_view_header_recovery.patch"
}
build() {
cd ${srcdir}/kget-$pkgver
cmake . \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_NepomukCore=Off \
-DWITH_NepomukWidgets=Off \
-DWITH_KDE4Workspace=Off \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd ${srcdir}/kget-$pkgver
make DESTDIR=${pkgdir} install
}