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-03-17 21:07:51 +00:00
|
|
|
pkgver=20130304
|
|
|
|
pkgrel=2
|
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-03-17 21:07:51 +00:00
|
|
|
depends=('libx11' 'libxcomposite' 'libxdamage' 'libxfixes' 'libxext' 'libxrender' 'libxrandr' 'xproto' 'bash' 'xorg-xprop' 'xorg-xwininfo' 'pcre' 'libconfig')
|
|
|
|
makedepends=('git' 'make' 'pkg-config' 'asciidoc' 'libgl')
|
2013-02-08 19:18:28 +00:00
|
|
|
|
|
|
|
_gitroot="git://github.com/chjj/compton.git"
|
|
|
|
_gitname="compton"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
|
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
cd $_gitname && git pull origin
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone $_gitroot $_gitname
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Starting make..."
|
|
|
|
|
|
|
|
rm -rf "$srcdir/$_gitname-build"
|
|
|
|
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
|
|
|
|
|
|
|
cd "$srcdir/$_gitname-build"
|
|
|
|
make PREFIX=/usr
|
|
|
|
make docs
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $_gitname-build
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|