switch cairo-compgmr-git to new vcs PKGBUILD style

This commit is contained in:
Cedric Girard 2013-04-05 16:10:19 +02:00
parent 3014c4eb06
commit 93ac311e76

View file

@ -3,7 +3,8 @@
# Contributor: Jacob Winther <jacob.winther@gmail.com> # Contributor: Jacob Winther <jacob.winther@gmail.com>
pkgname=cairo-compmgr-git pkgname=cairo-compmgr-git
pkgver=20130120 epoch=1
pkgver=0.3.1.32.gfb4117d
pkgrel=1 pkgrel=1
pkgdesc="Cairo based composite manager - Git version" pkgdesc="Cairo based composite manager - Git version"
arch=(i686 x86_64) arch=(i686 x86_64)
@ -16,24 +17,16 @@ depends=("gtk2>=2.16.0" "vala>=0.18" libsm libgl)
options=(!makeflags options=(!makeflags
!libtool) !libtool)
_gitroot="https://github.com/gandalfn/Cairo-Composite-Manager.git" source=('cairocompmgr::git+https://github.com/gandalfn/Cairo-Composite-Manager.git')
_gitname="cairocompmgr" md5sums=('SKIP')
pkgver() {
cd "$srcdir"/cairocompmgr
git describe --tags | sed 's|-|.|g'
}
build() { build() {
cd "$srcdir" cd "$srcdir"/cairocompmgr
msg "Connecting to GIT server..."
if [[ -d $_gitname ]]; then
(cd $_gitname && git pull )
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf $_gitname-build
cp -r $_gitname $_gitname-build
cd $_gitname-build
#patch for compatibility with vala 0.20 (git) #patch for compatibility with vala 0.20 (git)
#sed -i 's!libvala-0.18!libvala-0.20!' configure.ac #sed -i 's!libvala-0.18!libvala-0.20!' configure.ac
@ -45,7 +38,7 @@ build() {
} }
package() { package() {
cd $_gitname-build cd "$srcdir"/cairocompmgr
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/share/gconf/schemas/" install -d "$pkgdir/usr/share/gconf/schemas/"
@ -53,3 +46,5 @@ package() {
rm -rf "$pkgdir/etc/gconf/schemas/" rm -rf "$pkgdir/etc/gconf/schemas/"
} }
# vim:set ts=2 sw=2 et: