PKGBUILD 3.87 KB
Newer Older
1 2
# Maintainer:   H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
Phil Miller's avatar
Phil Miller committed
3

totte's avatar
totte committed
4
# Include global configuration
Phil Miller's avatar
Phil Miller committed
5 6
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf

philm's avatar
philm committed
7
pkgname="kdelibs"
8
arch=('x86_64')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
9
pkgver=${_libsver}
AlmAck's avatar
AlmAck committed
10
pkgrel=1
philm's avatar
philm committed
11
pkgdesc="KDE Core Libraries"
Phil Miller's avatar
Phil Miller committed
12
url="http://www.kde.org"
totte's avatar
totte committed
13 14 15 16 17 18 19 20
license=('GPL'
         'LGPL'
         'FDL')
options=('docs'
         '!header'
         'debug'
         'log')
depends=("${_qtpkg}>=${_qtver}"
totte's avatar
totte committed
21
         "chakra-common>=${_kdever}"
totte's avatar
totte committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
         "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'
AlmAck's avatar
AlmAck committed
50 51
         'systemd'
         'pcre')
totte's avatar
totte committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65
makedepends=('pkg-config'
             'cmake'
             'automoc4'
             'intltool'
             'avahi'
             'libgl'
             'aspell'
             'hspell'
             'shared-mime-info' 
             'docbook-xsl'
             'docbook-xml'
             'bzip2>=1.0.6'
             'libzip'
             'libpulse')
philm's avatar
philm committed
66
optdepends=('phonon-gstreamer: GStreamer Phonon backend (default)'
totte's avatar
totte committed
67 68 69 70 71 72
            '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')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
73
provides=("${pkgname}=${_libsver}"
totte's avatar
totte committed
74 75 76 77 78 79 80
          "kdelibs-doc")
replaces=('kdelibs-experimental'
          'arts'
          'kdelibs-doc')
groups=("kde"
        "kde-minimal"
        "kde-uninstall")
philm's avatar
philm committed
81 82
conflicts=("kdelibs-doc")
install=${pkgname}.install
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
83
source=($_mirror/${pkgname}-$_libsver.tar.xz
totte's avatar
totte committed
84 85 86
        01_chakra_tag.patch
        02_kde_applications_menu.patch
        03_chakra_menu.patch
87
        MergeDir.patch)
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
88
sha256sums=(`grep $pkgname-$_libsver.tar.xz  ../checksums.txt | cut -d " " -f1`
totte's avatar
totte committed
89 90 91
            '029e2d07c5fc8676d143b903aa181fc470e5b469d49ccf107e19031f562bf4e3'
            'b2d25c76081ea6bb31d90c4c6b619ce64ac36de3a6eefb2f9990d3dbf8cd9c91'
            '505e9e5e969be5094b3f713b865d5927cc3de1f4693915174732b20793228c4f'
AlmAck's avatar
AlmAck committed
92
            'd7d2fac1ceb1551081a5f3fa860c14d4aeb0c774d56067e931c20b8d79c4450f')
totte's avatar
totte committed
93

philm's avatar
philm committed
94
build() {
totte's avatar
totte committed
95
    # main patches
totte's avatar
totte committed
96
    msg "Applying patches..."
totte's avatar
totte committed
97 98 99 100
    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
101
    
totte's avatar
totte committed
102 103
    # right positioning of applications' entries in kmenu
    patch -p1 -i ${srcdir}/MergeDir.patch
totte's avatar
totte committed
104
    cd ${srcdir}
totte's avatar
totte committed
105 106 107 108 109 110 111
    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 \
totte's avatar
totte committed
112
        -DKDE_DISTRIBUTION_TEXT='Chakra' \
totte's avatar
totte committed
113 114
        -DKDE_DEFAULT_HOME='.kde4' \
        -DWITH_FAM=OFF \
totte's avatar
totte committed
115
        -DWITH_HUpnp=OFF \
totte's avatar
totte committed
116 117 118 119
        -DCMAKE_SKIP_RPATH=ON \
        -DWITH_SOLID_UDISKS2=ON \
        -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
    make VERBOSE=1
Phil Miller's avatar
Phil Miller committed
120 121
}

philm's avatar
philm committed
122
package() {
totte's avatar
totte committed
123 124 125 126 127
    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
Phil Miller's avatar
Phil Miller committed
128
}