Created
August 17, 2010 19:36
-
-
Save zoranzaric/531633 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Maintainer: Zoran Zaric <[email protected]> | |
| pkgname=babushka | |
| pkgver=20100817 | |
| pkgrel=0 | |
| pkgdesc='test-driven sysadmin' | |
| arch=(any) | |
| url='http://babushka.me' | |
| license=('None') #TODO | |
| makedepends=('git') | |
| depends=('ruby') | |
| provides=('babushka') | |
| source=() | |
| md5sums=() | |
| _gitroot="git://github.com/zoranzaric/babushka.git" | |
| _gitname=pacman | |
| build() { | |
| msg "Connecting to GIT server..." | |
| if [ -d "$srcdir/$pkgname" ]; then | |
| cd "$srcdir/$pkgname" && git pull origin $_gitname || return 1 | |
| else | |
| git clone "$_gitroot" "$srcdir/$pkgname" || return 1 | |
| cd "$srcdir/$pkgname" && git checkout $_gitname || return 1 | |
| fi | |
| msg "GIT checkout done or server timeout" | |
| echo $(pwd) | |
| mkdir -p ${pkgdir}/usr/lib/${pkgname} | |
| git archive master | tar -x -C ${pkgdir}/usr/lib//${pkgname} | |
| mkdir -p "${pkgdir}/usr/bin" | |
| ln -s /usr/lib/${pkgname}/bin/babushka.rb ${pkgdir}/usr/bin/babushka | |
| } | |
| # vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment