desktop/qtcurve/PKGBUILD

61 lines
1.6 KiB
Bash
Raw Normal View History

2014-03-28 09:33:03 +08:00
# Maintainer: UtG <utg.chakra.linux[at]gmail[dot]com>
# Contributor: Neophytos Kolokotronis <tetris4@gmail.com>
2014-06-26 00:48:19 +08:00
# Drake Justice <djustice@chakraos.org>
pkgbase=qtcurve
2014-06-26 00:48:19 +08:00
pkgname=('qtcurve-utils' 'qtcurve-qt5' 'qtcurve-kde4')
2014-03-28 09:33:03 +08:00
pkgver=1.8.18
pkgrel=7
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')
makedepends=('cmake' 'automoc4' 'qt' 'qt5-svg' 'qt5-x11extras' 'kdebase-workspace')
2014-06-26 00:48:19 +08:00
source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
"https://github.com/QtCurve/qtcurve/commit/323402d8b99502300f65e909c61153cbd5d5d997.diff")
md5sums=('422d1876d944bb278855f320eda19368'
'632c1dfa26fcc5f5d45fe082c9738f3b')
prepare() {
cd $pkgbase-$pkgver
# fix FS#40524 - Qt 5.3 build fix
patch -p1 -i ../${source[1]##*/}
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() {
2014-06-27 01:08:37 +08:00
cd $pkgbase-$pkgver/build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2014-06-27 01:08:37 +08:00
-DENABLE_GTK2=Off
2014-06-16 23:11:37 +08:00
make
}
package_qtcurve-utils() {
2014-06-26 00:48:19 +08:00
depends=('libx11')
cd ${srcdir}/${pkgbase}-${pkgver}/build/lib/utils
2014-06-27 02:53:10 +08:00
make DESTDIR="$pkgdir" install
cd ${srcdir}/${pkgbase}-${pkgver}/build/po
make DESTDIR="${pkgdir}" install
}
package_qtcurve-kde4() {
2014-06-26 00:48:19 +08:00
replaces=('qtcurve')
depends=('qtcurve-utils' 'kde-workspace')
2014-06-27 01:08:37 +08:00
cd ${pkgbase}-${pkgver}/build
make -C qt4 DESTDIR="${pkgdir}" install
2014-03-30 04:07:52 +08:00
}
2014-06-26 00:48:19 +08:00
package_qtcurve-qt5() {
depends=('qtcurve-utils' 'qt5-svg' 'qt5-x11extras' 'qt5-base')
cd ${srcdir}/${pkgbase}-${pkgver}/build/qt5
make DESTDIR="${pkgdir}" install
}