summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/PKGBUILD
blob: 00b566c2462cbff714fb020b0482d06b54129eee (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname=(parabolaweb-utils parabolaweb-dev)
pkgver=20140624.1
pkgdesc="Utilities for managing the ParabolaWeb website application"
url="https://projects.parabolagnulinux.org/packages/parabolaweb-utils.git/"
license=('GPL2')

# The commit to get dependency info for
# Bump pkgrel instead of pkgver if updating this is the only change
_parabolaweb_commit=724f8c309c97aa9af7f963687342e8f37e682204

pkgrel=1
epoch=1
arch=('i686' 'x86_64')

source=(
	"https://projects.parabolagnulinux.org/packages/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2"
	"requirements_prod-${_parabolaweb_commit}.txt::https://projects.parabolagnulinux.org/parabolaweb.git/plain/requirements_prod.txt?id=${_parabolaweb_commit}"
)
md5sums=('fe3d0414bcd6b21d8219eeea55d81b46'
         '8bf17af4e66f552864bfdc0fd1d472f1')

build() {
	cd "$srcdir/$pkgname-$pkgver"
	prod_file="file://${srcdir}/requirements_prod-${_parabolaweb_commit}.txt" make
}

package_parabolaweb-utils() {
	cd "$srcdir/$pkgbase-$pkgver"
	depends=($(< depends.txt))
	backup=('etc/conf.d/parabolaweb')
	make install DESTDIR="$pkgdir"
}

package_parabolaweb-dev() {
	cd "$srcdir/$pkgbase-$pkgver"
	pkgdesc="Depends on packages needed to develop ParabolaWeb"
	depends=($(sed -r -e 's/\s*#.*//' depends_make.txt))
}