summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/parabolaweb-utils/PKGBUILD')
-rw-r--r--libre/parabolaweb-utils/PKGBUILD70
1 files changed, 22 insertions, 48 deletions
diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD
index 4220394dc..0a49ce048 100644
--- a/libre/parabolaweb-utils/PKGBUILD
+++ b/libre/parabolaweb-utils/PKGBUILD
@@ -1,63 +1,37 @@
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
-. "${startdir:-.}/helper.sh"
-# provides:
-# _get_depends
-# _get_depends_nover (no version requirements)
-
-pkgname=parabolaweb-utils
-pkgver=20120425.0657
-pkgdesc="Utils for the Parabola website"
-url="https://projects.parabolagnulinux.org/parabolaweb.git/"
+pkgname=(parabolaweb-utils parabolaweb-dev)
+pkgver=20130717
+pkgdesc="Utilities for managing the parabolaweb website application"
+url="https://projects.parabolagnulinux.org/packages/parabolaweb-utils.git/"
license=('GPL2')
pkgrel=1
epoch=1
arch=('any')
-depends=(
- 'python2' # duh
- 'python2-flup' # for fcgi
- 'postgresql' # for database
- 'git' # used in parabolaweb-download
- 'libretools' # used in parabolaweb-{download,update} (libremessages)
- `_get_depends`)
-conflicts=('django>=1.5') # hold it at 1.4
-makedepends=(makepkg-git)
-backup=('etc/conf.d/parabolaweb')
-source=(git://parabolagnulinux.org/parabolaweb.git
- parabolaweb-download
- parabolaweb-update
- parabolaweb-fcgi
- parabolaweb.rc
- parabolaweb.service
- parabolaweb.conf)
+source=(
+ "https://projects.parabolagnulinux.org/packages/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2"
+ "https://projects.parabolagnulinux.org/parabolaweb.git/plain/requirements_prod.txt"
+)
-pkgver() {
- cd "$srcdir/parabolaweb"
- # get the date requirements_prod.txt was last modified
- gitdate="$(git log -n1 --date=iso --format=format:'%cd' ./requirements_prod.txt)"
- date -u +%Y%m%d.%H%M -d "$gitdate"
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ prod_file="file://${srcdir}/requirements_prod.txt" make
}
-build() {
- :
+package_parabolaweb-utils() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ depends=($(cat depends.txt))
+ backup=('etc/conf.d/parabolaweb')
+ make install DESTDIR="$pkgdir"
}
-package() {
- cd "${srcdir}"
- install -Dm755 parabolaweb-download "${pkgdir}/usr/sbin/parabolaweb-download"
- install -Dm755 parabolaweb-update "${pkgdir}/usr/sbin/parabolaweb-update"
- install -Dm755 parabolaweb-fcgi "${pkgdir}/usr/sbin/parabolaweb-fcgi"
- install -Dm755 parabolaweb.rc "${pkgdir}/etc/rc.d/parabolaweb"
- install -Dm644 parabolaweb.service "${pkgdir}/usr/lib/systemd/system/parabolaweb.service"
- install -Dm644 parabolaweb.conf "${pkgdir}/etc/conf.d/parabolaweb"
+package_parabolaweb-dev() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ pkgdesc="Depends on packages needed to develop parabolaweb"
+ depends=($(sed -r -e 's/\s*#.*//' depends_make.txt))
}
-md5sums=('SKIP'
- 'f162c2ce49b4cafe0a14bd4767dfea04'
- '7c212024c134fdd0d0318b52a5448ddb'
- 'd5294495f42df29d29519ebd0a8f6093'
- 'cc15e153f99fba82e7bb032896f655c2'
- 'a468016a7155b5da46521dcfc6428384'
- 'ffd37a19b1a72fbac2c58504aa17b355')
+md5sums=('a6734335001c7695d5a57fb509f8a745'
+ 'c84e52d81683cb3d572571ac19be89ac')