# Maintainer: Natanael Copa pkgname=cgit pkgver=0.9.0.3 pkgrel=0 _gitver=1.7.4 pkgdesc="a fast webinterface for git" url="http://hjemli.net/git/cgit" arch="all" license=GPL-2 makedepends="openssl-dev zlib-dev" depends= source=" http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2 http://hjemli.net/git/git/snapshot/git-$_gitver.tar.bz2 " _makeopts="NO_ICONV=YesPlease NO_TCLTK=YesPlease NO_SVN_TESTS=YesPlease" prepare() { cd "$srcdir/$pkgname-$pkgver" # check that upstream git ver corresponds with our local _ver=$(awk -F'[ \t]*=[ \t]*' '/^GIT_VER/ { print $2 }' Makefile) if [ "$_ver" != "$_gitver" ]; then error "Please set _gitver in APKBUILD to $_ver" return 1 fi rm -rf git ln -s ../git-$_gitver git } build() { cd "$srcdir/$pkgname-$pkgver" make $_makeopts } package() { cd "$srcdir/$pkgname-$pkgver" make $_makeopts DESTDIR="$pkgdir" \ CGIT_SCRIPT_PATH=/usr/share/webapps/cgit \ install ln -s cgit.cgi "$pkgdir"/usr/share/webapps/cgit/cgit } md5sums="3d5481bf8a507694108f0996b8bde235 cgit-0.9.0.3.tar.bz2 df23def274f896175a190a2b72c66731 git-1.7.4.tar.bz2"