mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
48 lines
1.4 KiB
Bash
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" "kdepimlibs" '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' '!header' 'debug' 'log')
|
|
makedepends=('pkg-config' 'cmake' 'automoc4' 'docbook-xsl')
|
|
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
|
|
}
|