updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / unipkg / PKGBUILD
blob6c56796795dc083738353a0b5f65285a703cebdd
1 # Maintainer:  Matthew Bauer <mjbauer95@gmail.com>
2 pkgname='unipkg'
3 pkgver=20110716
4 pkgrel=1
5 pkgdesc="Unipkg: a makepkg fork that can also compile to other package formats like debian and rpm(eventually). Use it like: unipkg -P debian"
6 arch=('any')
7 url="http://bauer.dnsdojo.com/Projects/$pkgdir"
8 license=('GPL')
9 source=()
10 depends=('bash')
11 makedepends=('git')
12 md5sums=()
14 _gitroot="git://github.com/matthewbauer/unipkg-pacman.git"
15 _gitname="unipkg-pacman"
17 build() {
18         cd "$srcdir"
19         msg "Connecting to GIT server...."
21         if [ -d $_gitname ] ; then
22                 cd $_gitname && git pull origin
23                 msg "The local files are updated."
24         else
25                 git clone $_gitroot $_gitname
26         fi
28         msg "GIT checkout done or server timeout"
29         msg "Starting make..."
31         rm -rf "$srcdir/$_gitname-build"
32         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33         cd "$srcdir/$_gitname-build"
35         ./autogen.sh
36         ./configure --prefix=/usr --sysconfdir=/etc \
37                 --localstatedir=/var --enable-doc
38         cd scripts
39         make makepkg
42 package() {
43         cd "$srcdir/$_gitname-build/scripts"
44         install -D -m755 makepkg $pkgdir/usr/bin/unipkg