mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-24 10:52:48 +00:00
100 lines
3.7 KiB
Bash
100 lines
3.7 KiB
Bash
# $Id$
|
|
# Maintainer: Ivailo Monev <xakepa10@gmail.com>
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
pkgname=katana-workspace
|
|
pkgver=4.18.0.34f9060
|
|
pkgrel=2
|
|
pkgdesc="Katana workspace interface and basic tools"
|
|
arch=('i686' 'x86_64')
|
|
url='http://fluxer.github.io/katana/'
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
groups=('katana')
|
|
# note on libxdamage:
|
|
# not detected by namcap because libgl depends on it
|
|
# but nvidia providing libgl does not depend on libxdamage
|
|
depends=("katanalibs>=4.18.0" "katana-baseapps>=4.18.0"
|
|
'lm_sensors' 'libraw1394' 'xorg-xprop' 'libxdamage' 'libqalculate'
|
|
'libxklavier' 'xorg-xsetroot' 'libxcomposite' 'libxft' 'libxinerama'
|
|
'xorg-xrdb' 'libxres' 'xorg-xrandr' 'xorg-xmessage' 'libusb-compat'
|
|
'xcb-util-renderutil' 'xcb-util-image' 'ttf-font' 'libssh' 'prison'
|
|
'xcb-util-keysyms' 'xcb-util-wm' 'pciutils' 'glu' 'libgl' 'qjson'
|
|
'libmtp' 'smbclient' 'xorg-server' 'python' 'eigen3'
|
|
'openslp' 'gpsd')
|
|
makedepends=('cmake' 'git' 'libnm-glib' 'xf86-input-synaptics'
|
|
'xorg-server-devel')
|
|
optdepends=('appmenu-qt: menu applications over dbus'
|
|
'xf86-input-synaptics: touchpad configuration'
|
|
'gdb: backtraces on applications crash')
|
|
install="${pkgname}.install"
|
|
backup=('usr/share/config/kdm/kdmrc' 'etc/pam.d/kde' 'etc/pam.d/kde-np' 'etc/pam.d/kscreensaver')
|
|
source=("git+https://github.com/fluxer/kde-workspace.git"
|
|
'kde.pam' 'kde-np.pam' 'kscreensaver.pam' 'kdm.service' 'kdm.logrotate'
|
|
'etc-scripts.patch' 'terminate-server.patch' 'khotkeys-qt4.patch')
|
|
sha1sums=('SKIP'
|
|
'660eae40a707d2711d8d7f32a93214865506b795'
|
|
'6aeecc9e0e221f0515c6bf544f9a3c11cb6961fe'
|
|
'c6afdf8964b2b2c4809b2e8e694729b2661e29df'
|
|
'b6f8e8692737b11eec1f8022ce74b5b23e247b1b'
|
|
'bbe55f2000217474ce7246f12ee437ceaaf7e9ae'
|
|
'c079ebd157c836ba996190f0d2bcea1a7828d02c'
|
|
'ac7bc292c865bc1ab8c02e6341aa7aeaf1a3eeee'
|
|
'aa9d2e5a69986c4c3d47829721ea99edb473be12')
|
|
conflicts=('kdebase-workspace' 'kdebase-runtime')
|
|
provides=('kdebase-workspace')
|
|
|
|
pkgver() {
|
|
cd kde-workspace
|
|
printf "4.18.0.%s" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
cd kde-workspace
|
|
# reads the shell scripts in /etc/kde/
|
|
patch -p0 -i "${srcdir}/etc-scripts.patch"
|
|
# FS#39188
|
|
patch -p1 -i "${srcdir}/khotkeys-qt4.patch"
|
|
# KDEBUG#202629
|
|
patch -p0 -i "${srcdir}/terminate-server.patch"
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../kde-workspace \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_TESTING=OFF \
|
|
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSYSCONF_INSTALL_DIR=/etc \
|
|
-DWITH_Xmms=OFF
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -vD -m644 "${srcdir}/kde.pam" "${pkgdir}/etc/pam.d/kde"
|
|
install -vD -m644 "${srcdir}/kde-np.pam" "${pkgdir}/etc/pam.d/kde-np"
|
|
install -vD -m644 "${srcdir}/kscreensaver.pam" "${pkgdir}/etc/pam.d/kscreensaver"
|
|
|
|
install -vd -m755 "${pkgdir}/usr/share/xsessions/"
|
|
ln -sf /usr/share/apps/kdm/sessions/kde-plasma{,-safe}.desktop \
|
|
"${pkgdir}/usr/share/xsessions/"
|
|
install -vd -m755 "${pkgdir}/etc/kde/"{env,shutdown}
|
|
|
|
install -vd -g 135 -o 135 "${pkgdir}/var/lib/kdm"
|
|
install -vD -m644 "${srcdir}/kdm.service" \
|
|
"${pkgdir}/usr/lib/systemd/system/kdm.service"
|
|
install -vDm644 "${srcdir}/kdm.logrotate" "${pkgdir}/etc/logrotate.d/kdm"
|
|
|
|
ln -vsf /usr/lib/kde4/libexec/kdesu "${pkgdir}/usr/bin/"
|
|
# FS#36668
|
|
chown -v :nobody "${pkgdir}/usr/lib/kde4/libexec/kdesud"
|
|
chmod -v g+s "${pkgdir}/usr/lib/kde4/libexec/kdesud"
|
|
}
|