summaryrefslogtreecommitdiffstats
path: root/blazeblogger-git/PKGBUILD
blob: 2458eb5daae9888226cf149919329738b2d5288e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Florian Pritz <bluewind@xssn.at>
# Contributor: Abakus <java5@arcor.de>
pkgname=blazeblogger-git
pkgver=20090812
pkgrel=1
pkgdesc="is a simple-to-use but capable CMS for the command line"
arch=('any')
url="http://blaze.blackened.cz"
license=('GPL')
depends=('perl')
makedepends=('git')
conflicts=('blazeblogger')
source=()
md5sums=()

_gitroot="git://gitorious.org/blazeblogger/mainline.git"
_gitname="mainline"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d "${_gitname}" ] ; then
    cd "${_gitname}" && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/mainline" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  sed -i 's|/usr/bin/pod2man|pod2man|' Makefile || return 1
  sed -i 's|/usr/bin/install|/bin/install|' Makefile || return 1
  make prefix=$startdir/pkg/usr install

}