Created
April 24, 2015 13:30
-
-
Save pmattern/426d011209a5461121aa to your computer and use it in GitHub Desktop.
Arch Linux: improvements regarding PKGBUILD in AUR package compton-conf-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Thomas Nordenmark <t.nordenmark@gmail.com> | |
_gitname='compton-conf' | |
pkgname="$_gitname-git" | |
pkgver=0.1.0.20.gb7de535 | |
pkgrel=1 | |
pkgdesc="Configuration manager for X compositor compton (git-version)" | |
arch=('i686' 'x86_64') | |
url="https://github.com/lxde/compton-conf" | |
license=('GPL2' 'LGPL2.1') | |
depends=('qt5-base' 'qt5-tools' 'libconfig') | |
makedepends=('git' 'cmake>=2.8.6') | |
optdepends=('compton: The actual compositor to configure' | |
'compton-git: The actual compositor to configure (git-version)') | |
conflicts=('compton-conf') | |
source=("git+https://github.com/lxde/compton-conf.git") | |
md5sums=("SKIP") | |
pkgver() { | |
cd "${srcdir}/${_gitname}" | |
git describe --always | sed "s/-/./g" | |
} | |
build() { | |
cd "$srcdir/$_gitname" | |
cmake -DCMAKE_INSTALL_PREFIX="/usr" | |
make | |
} | |
package() { | |
cd "$srcdir/$_gitname" | |
make DESTDIR="$pkgdir/" install | |
sed -i 's/LXQt/X-LXQt/g' "compton-conf.desktop" | |
install -D -m644 "compton-conf.desktop" "${pkgdir}/usr/share/applications/" | |
install -D -m644 "COPYING" "$pkgdir/usr/share/licenses/$_gitname/COPYING" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment