summaryrefslogtreecommitdiffstats
path: root/blazeblogger-git/PKGBUILD
blob: 5dfd68297254e39a8c5330cf676ad1f9ed50ce84 (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=20090811
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="blazeblogger"

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

  if [ -d "mainline" ] ; then
    cd "mainline" && 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

}