PKGBUILDs/aur/compton-git/PKGBUILD

39 lines
947 B
Bash
Raw Normal View History

2013-03-17 21:07:51 +00:00
# Maintainer: OK100 <ok100 at lavabit dot com>
2013-02-08 19:18:28 +00:00
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-git
2013-05-21 22:08:05 +00:00
_gitname=compton
pkgver=2013.04.21.g85e7d18
2013-04-08 16:09:14 +00:00
pkgrel=1
2013-02-08 19:18:28 +00:00
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
arch=(i686 x86_64)
url="https://github.com/chjj/compton"
license=('MIT')
2013-05-21 22:08:05 +00:00
depends=('libgl' 'dbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig')
makedepends=('git' 'asciidoc')
source=("git://github.com/chjj/compton.git")
md5sums=("SKIP")
2013-02-08 19:18:28 +00:00
2013-05-21 22:08:05 +00:00
pkgver() {
cd "${srcdir}/${_gitname}"
git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}
2013-02-08 19:18:28 +00:00
2013-04-08 16:09:14 +00:00
build() {
2013-05-21 22:08:05 +00:00
cd "$srcdir/$_gitname"
make PREFIX=/usr
2013-02-08 19:18:28 +00:00
make docs
}
package() {
2013-05-21 22:08:05 +00:00
cd "$srcdir/$_gitname"
2013-02-08 19:18:28 +00:00
2013-05-21 22:08:05 +00:00
make PREFIX="$pkgdir/usr" install
2013-02-08 19:18:28 +00:00
# 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"
}