core/oxygen/PKGBUILD

82 lines
2.4 KiB
Bash
Raw Normal View History

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/oxygen
2014-06-22 20:28:07 +08:00
pkgbase=oxygen
pkgname=('oxygen' 'oxygen-cursors' 'oxygen-kde4')
2018-07-03 02:12:31 +08:00
pkgver=5.13.2
pkgrel=1
pkgdesc="KDE Oxygen style"
2014-07-28 05:52:18 +08:00
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/oxygen'
2014-06-22 20:28:07 +08:00
license=('LGPL')
2018-03-10 04:58:01 +08:00
makedepends=(frameworkintegration kcmutils kdecoration extra-cmake-modules kdoctools kdelibs automoc4 python3)
2014-06-22 20:28:07 +08:00
options=("debug")
source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig})
2018-07-03 02:12:31 +08:00
sha256sums=('454987b631a625575caa421f17bef2605f000f87676f87413b129deec6b1bd25'
2016-10-01 03:01:02 +08:00
'SKIP' )
validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E' # Jonathan Riddell
'0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah <bshah@kde.org>
'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson
'1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
2014-06-22 20:28:07 +08:00
prepare() {
mkdir -p build{,-kde4}
2014-06-22 20:28:07 +08:00
}
build() {
cd build
2018-06-15 06:44:08 +08:00
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_SYSCONFDIR=/etc \
-DKDE_INSTALL_LIBEXECDIR=lib \
-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
-DBUILD_TESTING=OFF \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
make
cd ..
cd build-kde4
2018-06-15 06:44:08 +08:00
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF \
-DUSE_KDE4=ON
2014-06-22 20:28:07 +08:00
make
}
package_oxygen() {
pkgdesc='KDE Oxygen style'
depends=('frameworkintegration' 'kdecoration')
optdepends=('oxygen-cursors: cursor themes for Plasma 5')
groups=('plasma')
2014-06-22 20:28:07 +08:00
cd build
make DESTDIR="${pkgdir}" install
# Cursors conflicts with kde-workspace
rm -r "${pkgdir}"/usr/share/icons/
2014-06-22 20:28:07 +08:00
}
package_oxygen-cursors() {
pkgdesc='KDE Oxygen cursor themes for Plasma 5'
groups=('plasma')
conflicts=('kde-workspace')
cd build/cursors
make DESTDIR="${pkgdir}" install
}
package_oxygen-kde4() {
pkgdesc='KDE Oxygen style for KDE4 applications'
depends=('kdelibs')
conflicts=('kde-workspace')
cd build-kde4
2014-06-22 20:28:07 +08:00
make DESTDIR="${pkgdir}" install
# needed so that pure Qt4 apps are correctly themed
install -d -m755 "$pkgdir"/usr/lib/qt/plugins/styles
ln -s /usr/lib/kde4/plugins/styles/oxygen.so "$pkgdir"/usr/lib/qt/plugins/styles
2014-06-22 20:28:07 +08:00
}