desktop/kdelibs/PKGBUILD

130 lines
3.9 KiB
Bash
Raw Normal View History

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
2010-05-21 08:31:10 +08:00
2013-12-18 02:36:04 +08:00
# Include global configuration
2010-05-21 08:31:10 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname="kdelibs"
arch=('x86_64')
2015-02-20 06:29:49 +08:00
pkgver=${_libsver}
2015-03-11 20:17:15 +08:00
pkgrel=3
pkgdesc="KDE Core Libraries"
2010-05-21 08:31:10 +08:00
url="http://www.kde.org"
2013-12-18 02:36:04 +08:00
license=('GPL'
'LGPL'
'FDL')
options=('docs'
'!header'
'debug'
'log')
depends=("${_qtpkg}>=${_qtver}"
2014-01-11 20:59:04 +08:00
"chakra-common>=${_kdever}"
2013-12-18 02:36:04 +08:00
"oxygen-icons>=${_kdever}"
'shared-mime-info'
'upower'
'udisks2'
'xz>=5.0.0'
'enchant'
'jasper'
'openexr'
'giflib'
'strigi'
'libxtst'
'soprano>=2.8'
'ca-certificates'
'xdg-utils'
'qca'
'polkit-qt>=0.98.1'
'libxss'
'phonon'
'shared-desktop-ontologies>=0.7'
'attica>=0.4.2'
'krb5'
'libxcursor'
'libutempter'
'hicolor-icon-theme'
'libdbusmenu-qt'
'grantlee>=0.3.0'
'media-player-info'
'qtwebkit'
2014-02-17 06:03:04 +08:00
'systemd'
'pcre')
2013-12-18 02:36:04 +08:00
makedepends=('pkg-config'
'cmake'
'automoc4'
'intltool'
'avahi'
'libgl'
'aspell'
'hspell'
'shared-mime-info'
'docbook-xsl'
'docbook-xml'
'bzip2>=1.0.6'
'libzip'
'libpulse')
optdepends=('phonon-gstreamer: GStreamer Phonon backend (default)'
2013-12-18 02:36:04 +08:00
'phonon-xine: Xine Phonon backend'
'phonon-mplayer: MPlayer Phonon backend'
'phonon-vlc: VLC Phonon backend'
'avahi: Service discovery on your local network'
'aspell: Spell checking'
'hspell: Hebrew spell checking')
2015-02-20 06:29:49 +08:00
provides=("${pkgname}=${_libsver}"
2013-12-18 02:36:04 +08:00
"kdelibs-doc")
replaces=('kdelibs-experimental'
'arts'
'kdelibs-doc')
groups=("kde"
"kde-minimal"
"kde-uninstall")
conflicts=("kdelibs-doc")
install=${pkgname}.install
2015-02-20 06:29:49 +08:00
source=($_mirror/${pkgname}-$_libsver.tar.xz
2013-12-18 02:36:04 +08:00
01_chakra_tag.patch
02_kde_applications_menu.patch
03_chakra_menu.patch
MergeDir.patch)
2015-02-20 06:29:49 +08:00
sha256sums=(`grep $pkgname-$_libsver.tar.xz ../checksums.txt | cut -d " " -f1`
2014-01-13 08:32:18 +08:00
'029e2d07c5fc8676d143b903aa181fc470e5b469d49ccf107e19031f562bf4e3'
'b2d25c76081ea6bb31d90c4c6b619ce64ac36de3a6eefb2f9990d3dbf8cd9c91'
'505e9e5e969be5094b3f713b865d5927cc3de1f4693915174732b20793228c4f'
2014-08-25 01:33:17 +08:00
'd7d2fac1ceb1551081a5f3fa860c14d4aeb0c774d56067e931c20b8d79c4450f')
2013-12-18 02:36:04 +08:00
build() {
2013-12-17 20:32:36 +08:00
# main patches
2013-12-18 02:36:04 +08:00
msg "Applying patches..."
2013-12-17 20:32:36 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i ${srcdir}/01_chakra_tag.patch
patch -Np1 -i ${srcdir}/02_kde_applications_menu.patch
patch -Np1 -i ${srcdir}/03_chakra_menu.patch
2013-12-17 20:32:36 +08:00
# right positioning of applications' entries in kmenu
patch -p1 -i ${srcdir}/MergeDir.patch
2013-12-18 02:36:04 +08:00
cd ${srcdir}
2013-12-17 20:32:36 +08:00
rm -rf build
mkdir -p build && cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DSYSCONF_INSTALL_DIR=/etc \
-DHTML_INSTALL_DIR=/usr/share/doc/kde/html \
-DLOCALE_INSTALL_DIR=/usr/share/locale/kde4 \
2013-12-18 02:36:04 +08:00
-DKDE_DISTRIBUTION_TEXT='Chakra' \
2013-12-17 20:32:36 +08:00
-DKDE_DEFAULT_HOME='.kde4' \
-DWITH_FAM=OFF \
2013-12-18 02:36:04 +08:00
-DWITH_HUpnp=OFF \
2013-12-17 20:32:36 +08:00
-DCMAKE_SKIP_RPATH=ON \
-DWITH_SOLID_UDISKS2=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make VERBOSE=1
2010-05-21 08:31:10 +08:00
}
package() {
2013-12-17 20:32:36 +08:00
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
# link cert bundle to the one from ca-certificates
rm -f ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
ln -sf /etc/ssl/certs/ca-certificates.crt ${pkgdir}/usr/share/apps/kssl/ca-bundle.crt
2010-05-21 08:31:10 +08:00
}