mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
Merge pull request #449 from gtmanfred/master
update compton-git for pacman 4.1
This commit is contained in:
commit
03f9d1f333
1 changed files with 14 additions and 22 deletions
|
@ -2,43 +2,34 @@
|
||||||
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
|
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
|
||||||
|
|
||||||
pkgname=compton-git
|
pkgname=compton-git
|
||||||
pkgver=20130304
|
pkgver=290.dfd4dd1
|
||||||
pkgrel=2
|
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)"
|
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
|
||||||
arch=(i686 x86_64)
|
arch=(i686 x86_64)
|
||||||
url="https://github.com/chjj/compton"
|
url="https://github.com/chjj/compton"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('libx11' 'libxcomposite' 'libxdamage' 'libxfixes' 'libxext' 'libxrender' 'libxrandr' 'xproto' 'bash' 'xorg-xprop' 'xorg-xwininfo' 'pcre' 'libconfig')
|
depends=('libx11' 'libxcomposite' 'libxdamage' 'libxfixes' 'libxext' 'libxrender' 'libxrandr' 'xproto' 'bash' 'xorg-xprop' 'xorg-xwininfo' 'pcre' 'libconfig')
|
||||||
makedepends=('git' 'make' 'pkg-config' 'asciidoc' 'libgl')
|
makedepends=('git' 'make' 'pkg-config' 'asciidoc' 'libgl')
|
||||||
|
source=("compton::git://github.com/chjj/compton.git")
|
||||||
|
|
||||||
_gitroot="git://github.com/chjj/compton.git"
|
|
||||||
_gitname="compton"
|
_gitname="compton"
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
msg "Connecting to GIT server...."
|
cd "$_gitname"
|
||||||
|
make
|
||||||
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
|
make docs
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $_gitname-build
|
cd "$_gitname"
|
||||||
|
|
||||||
make PREFIX="$pkgdir/usr" install
|
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||||
|
|
||||||
# install license
|
# install license
|
||||||
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
|
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
|
||||||
|
@ -46,3 +37,4 @@ package() {
|
||||||
# example conf
|
# example conf
|
||||||
install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
|
install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
|
||||||
}
|
}
|
||||||
|
md5sums=('SKIP')
|
||||||
|
|
Loading…
Reference in a new issue