updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / isoman / PKGBUILD
blobd54b06351c4d5a85771cf8588db5aa109eb838d9
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=isoman
4 pkgver=20090830
5 pkgrel=1
6 pkgdesc="A simple bash script to automate ISO handling."
7 arch=('any')
8 url="http://ghost1227.com/isoman"
9 license=('GPL')
10 makedepends=('git')
12 _gitroot="git://github.com/ghost1227/isoman.git"
13 _gitname="isoman"
15 build() {
16   cd ${srcdir}
17   msg "Connecting to GIT server...."
19   if [ -d ${_gitname} ] ; then
20     cd ${_gitname} && git pull origin
21     msg "The local files are updated."
22   else
23     git clone ${_gitroot}
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf ${srcdir}/${_gitname}-build
30   git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
31   cd ${srcdir}/${_gitname}-build
33   install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
34   install -Dm644 man/${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1
35