From 74709549c514390b125ca33eaf7e46352aa27b49 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 22 Dec 2010 12:22:10 +0100 Subject: [PATCH] added AUR PKGBUILDs --- pkgbuild/cacti-spine/PKGBUILD | 29 ++++++++++++++ pkgbuild/cairo-compmgr-git/PKGBUILD | 51 ++++++++++++++++++++++++ pkgbuild/firefox-nightly.PKGBUILD | 41 +++++++++++++++++++ pkgbuild/gmpc-plugins/PKGBUILD | 23 +++++++++++ pkgbuild/perl-config-properties/PKGBUILD | 29 ++++++++++++++ pkgbuild/perl-rpsl-parser/PKGBUILD | 22 ++++++++++ pkgbuild/xmobar-git/PKGBUILD | 46 +++++++++++++++++++++ 7 files changed, 241 insertions(+) create mode 100644 pkgbuild/cacti-spine/PKGBUILD create mode 100644 pkgbuild/cairo-compmgr-git/PKGBUILD create mode 100644 pkgbuild/firefox-nightly.PKGBUILD create mode 100644 pkgbuild/gmpc-plugins/PKGBUILD create mode 100644 pkgbuild/perl-config-properties/PKGBUILD create mode 100644 pkgbuild/perl-rpsl-parser/PKGBUILD create mode 100644 pkgbuild/xmobar-git/PKGBUILD diff --git a/pkgbuild/cacti-spine/PKGBUILD b/pkgbuild/cacti-spine/PKGBUILD new file mode 100644 index 0000000..da95882 --- /dev/null +++ b/pkgbuild/cacti-spine/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Cedric Girard +# Contributor: Tom +pkgname=cacti-spine +pkgver=0.8.7g +pkgrel=2 +pkgdesc="Faster poller for Cacti." +arch=('i686' 'x86_64') +url="http://cacti.net/spine_info.php" +license=('GPL') +depends=('mysql' 'net-snmp' 'openssl') +backup=('etc/spine.conf') +makedepends=('binutils') +source=("http://www.cacti.net/downloads/spine/${pkgname}-${pkgver}.tar.gz") + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + /usr/bin/aclocal + /usr/bin/libtoolize --force --copy + /usr/bin/autoheader + /usr/bin/autoconf + /usr/bin/automake --add-missing --copy --force-missing + /bin/chmod +x ./configure + ./configure --prefix=/usr + make || return 1 + make DESTDIR=${pkgdir} install || return 1 + mv ${pkgdir}/usr/etc/ ${pkgdir}/ +} + +md5sums=('22c2b1986c880b9c587876c18d5c3f9f') diff --git a/pkgbuild/cairo-compmgr-git/PKGBUILD b/pkgbuild/cairo-compmgr-git/PKGBUILD new file mode 100644 index 0000000..940f3dc --- /dev/null +++ b/pkgbuild/cairo-compmgr-git/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Cedric Girard +# Contributor: catalyst +# Contributor: Jacob Winther + +pkgname=cairo-compmgr-git +pkgver=20101104 +pkgrel=1 +pkgdesc="Cairo based composite manager - Git version" +arch=(i686 x86_64) +url="http://cairo-compmgr.tuxfamily.org/" +license=(GPL) +conflicts=(cairo-compmgr) +provides=(cairo-compmgr) +makedepends=(gettext git gtk-doc "intltool>=0.41" gconf) +depends=("gtk2>=2.16.0" "vala>=0.9.7" libsm) +options=(!makeflags + !libtool) + +_gitroot="git://git.tuxfamily.org/gitroot/ccm/cairocompmgr.git" +_gitname="cairocompmgr" + +build() { + cd "$srcdir" + + 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 + + ./autogen.sh --prefix=/usr + + make +} + +package() { + cd $_gitname-build + + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir/usr/share/gconf/schemas/" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas" + rm -rf "$pkgdir/etc/gconf/schemas/" + +} diff --git a/pkgbuild/firefox-nightly.PKGBUILD b/pkgbuild/firefox-nightly.PKGBUILD new file mode 100644 index 0000000..68c0b53 --- /dev/null +++ b/pkgbuild/firefox-nightly.PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Cedric MATHIEU +# Contributor: coderoar + +arch=('i686' 'x86_64') +license=('MPL' 'GPL' 'LGPL') + +pkgname=firefox-nightly +pkgdesc='Standalone web browser from mozilla.org, nightly build.' +url='http://www.mozilla.org/projects/firefox' +pkgver=4.0b9pre +pkgrel=1 + +source=( 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop' ) +md5sums=( '940233ba24a2de784ea6c610872f01e4' '488e66c72fb678d2b99a22fe87bc5974' ) +sha1sums=('6880230bc487bd65c5da43c19498f4520793e27b' '7faa96301d1c3d7772da859b96b3420cb0f34bb3') + +depends=( 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info' ) +makedepends=('wget') + +build() { + cd ${srcdir} + + FX_SRC="firefox-${pkgver}.en-US.linux-${CARCH}.tar.bz2" + FX_SRC_URI="http://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/${FX_SRC}" + + msg "Downloading..." + wget -N ${FX_SRC_URI} + msg "Extracting..." + bsdtar -x -f ${FX_SRC} + msg "Packaging..." + +# uncomment this line to remove them if you want +# rm -rf firefox/{extensions,plugins,searchplugins} || return 1 + + mkdir -p ${pkgdir}/{usr/{bin,share/{applications,pixmaps}},opt} + cp -R firefox ${pkgdir}/opt/firefox-${pkgver} + + ln -s /opt/firefox-${pkgver}/firefox ${pkgdir}/usr/bin/firefox-nightly + install -m644 ${srcdir}/{firefox-nightly.desktop,firefox-nightly-safe.desktop} ${pkgdir}/usr/share/applications/ + install -m644 ${srcdir}/firefox/icons/mozicon128.png ${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png +} diff --git a/pkgbuild/gmpc-plugins/PKGBUILD b/pkgbuild/gmpc-plugins/PKGBUILD new file mode 100644 index 0000000..f29f83d --- /dev/null +++ b/pkgbuild/gmpc-plugins/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Cedric Girard +# Contributor: Dmitrij D. Czarkoff +pkgname=gmpc-plugins +pkgver=0.20.0 +pkgrel=2 +pkgdesc="official plugins for GMPC" +arch=(i686 x86_64) +url="http://gmpc.wikia.com/" +license="GPL" +depends=('libmpd>=0.19.0' 'gmpc>=0.19.0' 'lirc' 'xosd' 'libwebkit' 'libmicrohttpd' 'taglib') +makedepends=('gob2' 'intltool') +source=(http://download.sarine.nl/Programs/gmpc/${pkgver}/${pkgname}-${pkgver}.tar.gz) +md5sums=('e8c47c7cfeb8aab8995beef45d1c95ce') +options=(!libtool) + +build() { + cd ${startdir}/src + tar xzf ${pkgname}-${pkgver}.tar.gz + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 + make DESTDIR=$startdir/pkg install +} diff --git a/pkgbuild/perl-config-properties/PKGBUILD b/pkgbuild/perl-config-properties/PKGBUILD new file mode 100644 index 0000000..d2377bc --- /dev/null +++ b/pkgbuild/perl-config-properties/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Cedric Girard +pkgname=perl-config-properties +pkgver=1.71 +pkgrel=1 +pkgdesc="Config::Properties is a near implementation of the java.util.Properties API." +arch=(any) +url="http://search.cpan.org/~salva/Config-Properties/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0') +options=(!emptydirs) +source=(http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/Config-Properties-$pkgver.tar.gz) +md5sums=(b8b8457f3b07f5e4b342353fed43f93b) + +build() { + cd "$srcdir/Config-Properties-$pkgver" + + # install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + +} + +package() { + cd "$srcdir/Config-Properties-$pkgver" + make install DESTDIR="$pkgdir/" + +} + +# vim:set ts=2 sw=2 et: diff --git a/pkgbuild/perl-rpsl-parser/PKGBUILD b/pkgbuild/perl-rpsl-parser/PKGBUILD new file mode 100644 index 0000000..123c09d --- /dev/null +++ b/pkgbuild/perl-rpsl-parser/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: Cedric Girard +pkgname=perl-rpsl-parser +pkgver=0.04000 +pkgrel=1 +pkgdesc="Router Policy Specification Language (RFC2622) Parser" +arch=(any) +url="http://search.cpan.org/~lmc/RPSL-Parser/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0', 'perl-class-accessor>=0.31') +options=(!emptydirs) +source=(http://search.cpan.org/CPAN/authors/id/L/LM/LMC/RPSL-Parser-$pkgver.tar.gz) +md5sums=(f4344b0258b7d55dd5e0923a1fcda33d) + +build() { + cd "$srcdir/RPSL-Parser-$pkgver" + + perl Build.PL installdirs=vendor destdir="$pkgdir/" + perl Build + perl Build install +} + +# vim:set ts=2 sw=2 et: diff --git a/pkgbuild/xmobar-git/PKGBUILD b/pkgbuild/xmobar-git/PKGBUILD new file mode 100644 index 0000000..4f49e46 --- /dev/null +++ b/pkgbuild/xmobar-git/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Cedric Girard +pkgname=xmobar-git +pkgver=20101222 +pkgrel=2 +pkgdesc="A minimal status bar for the XMonad Window Manager" +arch=('i686' 'x86_64') +url="http://projects.haskell.org/xmobar/" +license=('custom:BSD3') +makedepends=('ghc>=6.12' 'haskell-x11-xft' 'haskell-stm' 'haskell-parsec' 'haskell-utf8-string' 'haskell-libmpd' 'haskell-hinotify' 'wireless_tools' 'git') +depends=('wireless_tools' 'gmp' 'libxinerama' 'libxft') +conflicts=('xmobar' 'xmobar-darcs') +install= +source=() +md5sums=() + +_gitroot="https://github.com/jaor/xmobar.git" +_gitname="xmobar" + +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" + + runhaskell Setup configure --flags="all_extensions" --prefix=/usr + runhaskell Setup build + + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/BSD3 +} + +package() { + cd "${srcdir}/$_gitname-build" + runhaskell Setup copy --destdir=${pkgdir} +}