qtcurve: update to 1.9.1

This commit is contained in:
Jeff Huang 2017-06-04 02:29:52 +01:00
parent ccb9b4f40d
commit c3fd933c05

View File

@ -1,31 +1,27 @@
pkgbase=qtcurve pkgbase=qtcurve
pkgname=('qtcurve-utils' 'qtcurve-kf5' 'qtcurve-qt4') pkgname=('qtcurve-utils' 'qtcurve-kf5' 'qtcurve-qt4')
pkgver=1.8.18.r247.d126bd5 pkgver=1.9.1
pkgrel=1 pkgrel=1
pkgdesc='A configurable set of widget styles for KDE and Gtk' pkgdesc='A configurable set of widget styles for KDE and Gtk'
arch=('x86_64') arch=('x86_64')
url='https://github.com/QtCurve/qtcurve' url='https://github.com/KDE/qtcurve'
license=('LGPL') license=('LGPL')
groups=('qtcurve') groups=('qtcurve')
makedepends=('qt' 'qt5-svg' 'qt5-x11extras' 'extra-cmake-modules' 'kdelibs4support' 'kdoctools') makedepends=('qt' 'qt5-svg' 'qt5-x11extras' 'extra-cmake-modules' 'kdelibs4support' 'kdoctools'
source=('git://anongit.kde.org/qtcurve.git#commit=d126bd5') 'frameworkintegration' 'python3' 'kdesignerplugin')
sha1sums=('SKIP') source=("$pkgbase-$pkgver.tar.gz::https://github.com/KDE/qtcurve/archive/$pkgver.tar.gz")
sha1sums=('3158759051770e99beee7079ca948e7074feddd4')
pkgver() {
cd $srcdir/$pkgbase
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() { prepare() {
cd $srcdir/$pkgbase cd $srcdir/$pkgbase-$pkgver
# prepare for build # prepare for build
[[ -e build ]] && rm -rf build [[ -e build ]] && rm -rf build
mkdir build mkdir -p build
} }
build() { build() {
cd $srcdir/$pkgbase/build cd $srcdir/$pkgbase-$pkgver/build
cmake .. -DCMAKE_BUILD_TYPE=Release \ cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_GTK2=Off \ -DENABLE_GTK2=Off \
@ -35,14 +31,14 @@ build() {
package_qtcurve-utils() { package_qtcurve-utils() {
depends=('libx11') depends=('libx11')
cd ${srcdir}/${pkgbase}/build/lib/utils cd ${srcdir}/$pkgbase-$pkgver/build/lib/utils
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
package_qtcurve-qt4() { package_qtcurve-qt4() {
depends=('qtcurve-utils' 'qt') depends=('qtcurve-utils' 'qt')
cd $srcdir/${pkgbase}/build cd $srcdir/$pkgbase-$pkgver/build
make -C qt4 DESTDIR="${pkgdir}" install make -C qt4 DESTDIR="${pkgdir}" install
} }
@ -50,6 +46,6 @@ package_qtcurve-kf5() {
depends=('qtcurve-utils' 'qt5-svg' 'qt5-x11extras' 'qt5-base' 'plasma-workspace') depends=('qtcurve-utils' 'qt5-svg' 'qt5-x11extras' 'qt5-base' 'plasma-workspace')
replaces=('qtcurve-qt5') replaces=('qtcurve-qt5')
conflicts=('qtcurve-qt5') conflicts=('qtcurve-qt5')
cd ${srcdir}/${pkgbase}/build/qt5 cd ${srcdir}/$pkgbase-$pkgver/build/qt5
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
} }