Merge pull request #449 from gtmanfred/master

update compton-git for pacman 4.1
This commit is contained in:
Mike Brown 2013-04-08 09:10:20 -07:00
commit 03f9d1f333

View file

@ -2,43 +2,34 @@
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-git
pkgver=20130304
pkgrel=2
pkgver=290.dfd4dd1
pkgver() {
cd $srcdir/compton
echo $(git rev-list --count master).$(git rev-parse --short master)
}
epoch=1
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
arch=(i686 x86_64)
url="https://github.com/chjj/compton"
license=('MIT')
depends=('libx11' 'libxcomposite' 'libxdamage' 'libxfixes' 'libxext' 'libxrender' 'libxrandr' 'xproto' 'bash' 'xorg-xprop' 'xorg-xwininfo' 'pcre' 'libconfig')
makedepends=('git' 'make' 'pkg-config' 'asciidoc' 'libgl')
source=("compton::git://github.com/chjj/compton.git")
_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
cd "$_gitname"
make
make docs
}
package() {
cd $_gitname-build
cd "$_gitname"
make PREFIX="$pkgdir/usr" install
make DESTDIR="$pkgdir" PREFIX=/usr install
# install license
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
@ -46,3 +37,4 @@ package() {
# example conf
install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
}
md5sums=('SKIP')