commit 51064a1999d5d9d2da600463b0a1e18e04cd1b7a Author: Marti Raudsepp <marti@juffo.org> Date: Wed May 12 16:33:10 2010 +0300 dbmeasure-git: initial package (git date 20100512) diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..d653195b8c2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = dbmeasure-git + pkgdesc = ALSA volume control verification/measurement tool + pkgver = 20100512 + pkgrel = 1 + url = http://git.0pointer.de/?p=dbmeasure.git;a=summary + arch = i686 + arch = x86_64 + license = LGPL + makedepends = git + depends = alsa-lib + +pkgname = dbmeasure-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..dc1db852c6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Marti Raudsepp <marti@juffo.org> + +pkgname=dbmeasure-git +pkgver=20100512 +pkgrel=1 +pkgdesc="ALSA volume control verification/measurement tool" +arch=(i686 x86_64) +url="http://git.0pointer.de/?p=dbmeasure.git;a=summary" +license=('LGPL') +depends=('alsa-lib') +makedepends=('git') + +_gitroot="git://git.0pointer.de/dbmeasure.git" +_gitname="dbmeasure" + +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" + + make || return 1 + #make DESTDIR=$pkgdir install || return 1 + + mkdir -p $pkgdir/usr/bin + cp dbmeasure dbverify $pkgdir/usr/bin/ || return 1 + mkdir -p $pkgdir/usr/share/doc/$pkgname + cp README $pkgdir/usr/share/doc/$pkgname/ || return 1 +}