# Maintainer: Alfredo Ramos # Contributor: huiyiqun # Contributor: Thomas Nordenmark _pkgname=compton-conf pkgname=${_pkgname}-git pkgver=0.15.0.0.g6696ddb pkgrel=1 pkgdesc='A graphical configuration tool for Compton X composite manager. Development version.' arch=('i686' 'x86_64') url='https://github.com/lxqt/compton-conf' license=('LGPL2.1') groups=('lxqt') depends=('qt5-base' 'libconfig') makedepends=('git' 'cmake' 'qt5-tools' 'lxqt-build-tools-git>=0.7.0') provides=("${_pkgname}=${pkgver}") conflicts=("${_pkgname}") source=("git+https://github.com/lxqt/${_pkgname}.git") sha512sums=('SKIP') pkgver() { # Updating package version cd "${srcdir}"/${_pkgname} git describe --long --tags 2>/dev/null | sed -r 's/-/./g' } prepare() { # Build directory mkdir -p "${srcdir}"/build } build() { # Building package cd "${srcdir}"/build cmake ../${_pkgname} \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { # Installing package cd "${srcdir}"/build make DESTDIR="${pkgdir}" install }