PKGBUILD
# Maintainer: pavbaranov
pkgname=styleconfig-git
_gitname=styleconfig
pkgver=r23.f297fb4
pkgrel=1
pkgdesc="StyleProject Settings Manager"
arch=('i686' 'x86_64')
url="http://phobi4n.deviantart.com/art/StyleProject-Settings-Manager-556516470"
license=('GPL')
depends=('qt5-base' 'kwidgetsaddons' 'styleproject-qt5-git')
makedepends=('qt5-base' 'git')
source=('git+https://github.com/magpie240/styleconfig')
sha1sums=('SKIP')
pkgver() {
cd "${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
rm -fr build
mkdir -p build
sed -e 's|dsp/settings.h|dsp-qt5/settings.h|g' -i styleconfig/mainwindow.cpp
}
build() {
cd build
qmake-qt5 prefix=/usr ../${_gitname}
make
}
package() {
install -Dm755 build/styleconfig ${pkgdir}/usr/bin/styleconfig
}