Skip to content

Instantly share code, notes, and snippets.

@johnhowe
Created June 9, 2010 12:07
Show Gist options
  • Save johnhowe/431377 to your computer and use it in GitHub Desktop.
Save johnhowe/431377 to your computer and use it in GitHub Desktop.
pkgname=megatunix-git
pkgver=20100610
pkgrel=1
pkgdesc="MegaTunix Tuning software"
arch=("i686" "x86_64")
url="http://megatunix.sourceforge.net/"
license=('GPL')
depends=('libtool' 'intltool' 'gcc' 'gtkglext' 'flex' 'bison' 'glade' 'libglade' 'git' 'make' 'automake' 'gdb')
replaces=('megatunix-cvs')
_gitroot="git://github.com/djandruczyk/MegaTunix.git"
_gitname="MegaTunix"
source=()
md5sums=()
build() {
cd ${srcdir}
msg "Connecting to GIT server...."
if [ -d "${srcdir}/${_gitname}" ] ; then
cd ${_gitname} && git pull --rebase
else
git clone ${_gitroot}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
git clone --bare $_gitname $_gitname-build
cd $_gitname-build
./autogen.sh --enable-debug --prefix=/usr
make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -r $srcdir/$_gitname-build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment