New cairo-compmgr-git to work with vala-0.12

pidgin-libnotify-fork PKGBUILD for git version not yet in AUR
This commit is contained in:
Cedric Girard 2011-03-17 14:46:44 +01:00
parent 33969b06f2
commit 609897fb95
3 changed files with 55 additions and 3 deletions

3
pkgbuild/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*/pkg/*
*/src/*
*.tar.*

View file

@ -3,7 +3,7 @@
# Contributor: Jacob Winther <jacob.winther@gmail.com> # Contributor: Jacob Winther <jacob.winther@gmail.com>
pkgname=cairo-compmgr-git pkgname=cairo-compmgr-git
pkgver=20101104 pkgver=20110317
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)
@ -12,7 +12,7 @@ license=(GPL)
conflicts=(cairo-compmgr) conflicts=(cairo-compmgr)
provides=(cairo-compmgr) provides=(cairo-compmgr)
makedepends=(gettext git gtk-doc "intltool>=0.41" gconf) makedepends=(gettext git gtk-doc "intltool>=0.41" gconf)
depends=("gtk2>=2.16.0" "vala>=0.9.7" libsm) depends=("gtk2>=2.16.0" "vala>=0.11" libsm)
options=(!makeflags options=(!makeflags
!libtool) !libtool)
@ -35,6 +35,10 @@ build() {
cp -r $_gitname $_gitname-build cp -r $_gitname $_gitname-build
cd $_gitname-build cd $_gitname-build
#patch for compatibility with vala 0.12
sed -i 's!vala-0.10!libvala-0.12!' configure.ac
sed -i 's!vala-0.10!libvala-0.12!' vapi/cairo-compmgr.deps
./autogen.sh --prefix=/usr ./autogen.sh --prefix=/usr
make make
@ -44,7 +48,7 @@ package() {
cd $_gitname-build cd $_gitname-build
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/share/gconf/schemas/" install -d "$pkgdir/usr/share/gconf/schemas/"
gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas" gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas"
rm -rf "$pkgdir/etc/gconf/schemas/" rm -rf "$pkgdir/etc/gconf/schemas/"

View file

@ -0,0 +1,45 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=pidgin-libnotify-fork-git
pkgver=20110317
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="pidgin plugin that enables popups when someone logs in or messages you."
url="https://github.com/X-dark/ArchLinux/tree/master/code/pidgin-libnotify"
license=('GPL')
depends=('pidgin' 'libnotify' 'perlxml' 'gettext' 'notification-daemon')
makedepends=('libtool' 'intltool')
replaces=('gaim-libnotify' 'pidgin-libnotify')
options=(!libtool)
_gitroot="https://github.com/X-dark/pidgin-libnotify-fork.git"
_gitname="pidgin-libnotify-fork"
build() {
cd "${srcdir}"
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"
./autogen.sh
./configure --prefix=/usr --disable-deprecated --disable-static
make
}
package(){
cd "${srcdir}/$_gitname-build"
make DESTDIR="$pkgdir" install
}