core/oxygen/PKGBUILD

61 lines
1.8 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
2018-10-20 13:25:16 +08:00
pkgname=('oxygen' 'oxygen-cursors')
2018-10-25 00:30:59 +08:00
pkgver=5.14.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-10-20 13:25:16 +08:00
makedepends=(frameworkintegration kcmutils kdecoration extra-cmake-modules kdoctools 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-10-25 00:30:59 +08:00
sha256sums=('6ef788ea576d972883b3e97c7ce35a1ce6134533a8242cdf14f16bcb2799a0c5'
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 ..
2014-06-22 20:28:07 +08:00
}
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
}