Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created September 1, 2011 20:10
Show Gist options
  • Save jhsu/1187130 to your computer and use it in GitHub Desktop.
Save jhsu/1187130 to your computer and use it in GitHub Desktop.
# Maintainer: Joseph Hsu <[email protected]>
pkgname=bdsm-git
pkgver=20110418
pkgrel=1
pkgdesc="SM :: S{cripting,ystem,tack} Management (SM) Framework (Core)"
arch=('i686' 'x86_64')
url="https://sm.beginrescueend.com/"
license=("Apache License, Version 2.0")
depends=("bash")
makedepends=("git")
provides=("bdsm")
source=()
md5sums=()
_gitroot=https://github.com/sm/sm.git
_gitname=bdsm
build() {
cd "$srcdir"
msg "Connecting to Github repo ($_gitroot)...."
if [ -d $_gitname ] ; then
cd $_gitname
git pull || return 1
msg2 "The local files are updated."
else
msg2 "Cloning repo..."
git clone $_gitroot $_gitname
fi
}
package() {
msg2 "Installing BDSM..."
cd "$srcdir/$_gitname"
export prefix_path=$pkgdir
./install
}
# 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