From e0199de4a098f6e2ac60023627ff4aa0c79108ca Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 1 Aug 2015 16:36:20 -0400 Subject: adding compton --- pcr/compton/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pcr/compton/PKGBUILD (limited to 'pcr/compton') diff --git a/pcr/compton/PKGBUILD b/pcr/compton/PKGBUILD new file mode 100644 index 000000000..bf335ace7 --- /dev/null +++ b/pcr/compton/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Luke R. GPG: rsa4096/3EAE8697 +# Contributor (Arch): WorMzy Tykashi +# Contributer (Arch): OK100 +# Contributer (Arch): Valère Monseur + +pkgname=compton +pkgver=0.1_beta2 +pkgrel=5 +pkgdesc="X Compositor (a fork of xcompmgr-dana)" +arch=(i686 x86_64) +url="https://github.com/chjj/compton" +license=('MIT') +depends=('libgl' 'libdbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig' 'libxinerama') +makedepends=('asciidoc' 'mesa') +optdepends=('dbus: To control compton via D-Bus' + 'xorg-xwininfo: For compton-trans' + 'xorg-xprop: For compton-trans') +source=("https://github.com/chjj/${pkgname}/archive/v${pkgver}.tar.gz") +sha512sums=('c3a019d90e32559d44e3a4969bcc15a15837db9c9519ce8cc70b1bd3d0cb16d29449f68cc2f6a8d834569c9620ec6533ab85c1586da957c69b1ae341d9584535') +whirlpoolsums=('39ca9718bc79d4542d73cce39bb51fc9b9c0497a30914ab044b920f72a3c2f8cbd315c5dc97c999c1f0ca798ae692ada4626f069914b6835f0c225638b486422') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # fix version + sed -i "s:\(COMPTON_VERSION ?= \)git.*:\1v${pkgver}:" Makefile +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make PREFIX=/usr + make docs +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make PREFIX="$pkgdir/usr" install + + # install license + install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # example conf + install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example" +} -- cgit v1.2.3-2-g168b