mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
38 lines
947 B
Bash
38 lines
947 B
Bash
# Maintainer: OK100 <ok100 at lavabit dot com>
|
|
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
|
|
|
|
pkgname=compton-git
|
|
_gitname=compton
|
|
pkgver=2013.04.21.g85e7d18
|
|
pkgrel=1
|
|
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
|
|
arch=(i686 x86_64)
|
|
url="https://github.com/chjj/compton"
|
|
license=('MIT')
|
|
depends=('libgl' 'dbus' 'libxcomposite' 'libxdamage' 'libxrandr' 'pcre' 'libconfig')
|
|
makedepends=('git' 'asciidoc')
|
|
source=("git://github.com/chjj/compton.git")
|
|
md5sums=("SKIP")
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_gitname}"
|
|
git log -1 --format="%cd.g%h" --date=short | sed '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"
|
|
}
|