desktop/qtcurve/PKGBUILD

56 lines
1.3 KiB
Bash
Raw Normal View History

pkgbase=qtcurve
2016-02-22 03:13:18 +08:00
pkgname=('qtcurve-utils' 'qtcurve-kf5' 'qtcurve-qt4')
pkgver=1.8.18.r247.d126bd5
pkgrel=1
2014-06-26 00:48:19 +08:00
pkgdesc='A configurable set of widget styles for KDE and Gtk'
2014-06-26 01:50:31 +08:00
arch=('x86_64')
url='https://github.com/QtCurve/qtcurve'
2014-06-26 00:48:19 +08:00
license=('LGPL')
groups=('qtcurve')
2016-02-22 03:13:18 +08:00
makedepends=('qt' 'qt5-svg' 'qt5-x11extras' 'extra-cmake-modules' 'kdelibs4support' 'kdoctools')
source=('git://anongit.kde.org/qtcurve.git#commit=d126bd5')
sha1sums=('SKIP')
2014-06-26 00:48:19 +08:00
2016-02-22 03:13:18 +08:00
pkgver() {
cd $srcdir/$pkgbase
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
2014-06-26 00:48:19 +08:00
2016-02-22 03:13:18 +08:00
prepare() {
cd $srcdir/$pkgbase
2014-06-27 01:08:37 +08:00
# prepare for build
[[ -e build ]] && rm -rf build
mkdir build
2014-03-30 04:07:52 +08:00
}
build() {
2016-02-22 03:13:18 +08:00
cd $srcdir/$pkgbase/build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2016-02-22 03:13:18 +08:00
-DENABLE_GTK2=Off \
-DQTC_QT4_ENABLE_KDE=false
2014-06-16 23:11:37 +08:00
make
}
package_qtcurve-utils() {
2014-06-26 00:48:19 +08:00
depends=('libx11')
2016-02-22 03:13:18 +08:00
cd ${srcdir}/${pkgbase}/build/lib/utils
2014-06-27 02:53:10 +08:00
make DESTDIR="$pkgdir" install
}
2016-02-22 03:13:18 +08:00
package_qtcurve-qt4() {
depends=('qtcurve-utils' 'qt')
2016-02-22 03:13:18 +08:00
cd $srcdir/${pkgbase}/build
2014-06-27 01:08:37 +08:00
make -C qt4 DESTDIR="${pkgdir}" install
2014-03-30 04:07:52 +08:00
}
2014-06-26 00:48:19 +08:00
2016-02-22 03:13:18 +08:00
package_qtcurve-kf5() {
depends=('qtcurve-utils' 'qt5-svg' 'qt5-x11extras' 'qt5-base' 'plasma-workspace')
replaces=('qtcurve-qt5')
conflicts=('qtcurve-qt5')
2016-02-22 03:13:18 +08:00
cd ${srcdir}/${pkgbase}/build/qt5
2014-06-26 00:48:19 +08:00
make DESTDIR="${pkgdir}" install
}