Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (39 sloc) 1.19 KB
# -*- Mode: shell-script; sh-basic-offset: 2 -*-
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Justin Davis <jrcd83@gmail.com>
pkgname='clyde-git'
pkgver='20110327'
pkgrel='1'
pkgdesc="Next-generation libalpm/makepkg wrapper."
arch=('i686' 'x86_64')
url='https://github.com/Kiwi/clyde'
license=('custom')
makedepends=('git' 'make')
depends=('pacman>=3.5' 'lua-lzlib' 'lua-yajl-git' 'luasocket' 'luafilesystem')
provides=('clyde' 'lualpm')
_gitroot='git://github.com/Kiwi/clyde.git'
_gitbranch=${BRANCH:-'master'}
build() {
REPO_DIR="${srcdir}/clyde"
if [ -d "$REPO_DIR" ] ; then
warning 'Repository directory already exists!'
msg2 "Pulling from $_gitroot..."
cd "$REPO_DIR"
git pull origin
else
msg2 "Cloning $_gitroot repository..."
git clone "$_gitroot" "$REPO_DIR"
cd "$REPO_DIR"
fi
msg2 "Checking out the $_gitbranch branch..."
git checkout "$_gitbranch"
if [ "$?" -ne 0 ] ; then
error "Failed to checkout the $_gitbranch branch... aborting."
return 1
fi
msg 'Building clyde...'
make
msg 'Packaging clyde...'
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Something went wrong with that request. Please try again.