Skip to content

Instantly share code, notes, and snippets.

@Roliga
Created September 20, 2017 01:18
Show Gist options
  • Save Roliga/6671c86d9c5fcb072996daf806e9ab31 to your computer and use it in GitHub Desktop.
Save Roliga/6671c86d9c5fcb072996daf806e9ab31 to your computer and use it in GitHub Desktop.
Compton with some modifications
pkgname=compton-mod
_gitname=compton
pkgver=0.1_beta2.85.ga37cb14
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) (git-version)"
arch=(i686 x86_64)
url="https://github.com/Roliga/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' 'compton-git')
source=("git://github.com/Roliga/compton.git")
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