summaryrefslogtreecommitdiff
path: root/~lukeshu/parabolaweb-git/PKGBUILD
blob: 962b1c977b73eb594c31b61319c956705ddcbe1d (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# This does not follow normal package guidelines; it is not a normal package.

pkgname=parabolaweb-git
pkgver=20120228
pkgrel=2
pkgdesc="The Parabola website, fork of archweb"
arch=('any')
url="https://projects.parabolagnulinux.org/parabolaweb.git/"
license=('GPL2')

_requirements=https://projects.parabolagnulinux.org/parabolaweb.git/plain/requirements_prod.txt
depends=('python2' 'git'
    `curl -s "$_requirements" | sed -r -e 's/.*/\L&/' -e 's/==/=/' \
      -e 's/^(south)/python-&/' \
      -e 's/^(markdown|psycopg2|pyinotify|pytz)/python2-&/'`)
install=parabolaweb.install

# These will make it install into /http/srv/web
_install_dir=/srv/http
_gitname=web

_gitroot=https://projects.parabolagnulinux.org/parabolaweb.git
_gitbranch="master"

build() {
    sed -i \
	-e "s|^_install_dir=.*|_install_dir='$_install_dir'|" \
	-e "s|^_gitname=.*|_gitname='$_gitname'|" \
	-e "s|^_gitroot=.*|_gitroot='$_gitroot'|" \
	-e "s|^_gitbranch=.*|_gitbranch='$_gitbranch'|" \
	../parabolaweb.install
}

package() {
    install -d "${pkgdir}/${_install_dir}"
}