Created
June 9, 2010 12:07
-
-
Save johnhowe/431377 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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