Skip to content

Instantly share code, notes, and snippets.

@tryone144
Created April 4, 2018 10:38
Show Gist options
  • Save tryone144/00b3992c1523a35c74336623872176b8 to your computer and use it in GitHub Desktop.
Save tryone144/00b3992c1523a35c74336623872176b8 to your computer and use it in GitHub Desktop.
Archlinux package of compton with dual_kawase blur patch
# Maintainer: tryone144 <bernd AT busse-apps DOT de>
# Contributor: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: OK100 <ok100 at lavabit dot com>
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-dual_kawase-git
_gitname=compton
pkgver=0.1_beta2.95.g241bbc5
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) with dual_kawase blur patch (git version)"
arch=(i686 x86_64)
url="https://github.com/tryone144/compton"
license=('MIT')
depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama' 'hicolor-icon-theme')
makedepends=('git' 'asciidoc' 'mesa')
optdepends=('dbus: To control compton via D-Bus'
'xorg-xwininfo: For compton-trans'
'xorg-xprop: For compton-trans')
provides=('compton')
conflicts=('compton')
source=(git+"https://github.com/tryone144/compton.git#branch=dual_kawase")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --tags | sed -e 's:v::' -e 's/-/./g'
}
build() {
cd "$srcdir/$_gitname"
make PREFIX=/usr
make docs
}
package() {
cd "$srcdir/$_gitname"
make PREFIX="$pkgdir/usr" install
# install license
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
# example conf
install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment