summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-07-17 19:52:39 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-07-17 19:52:39 -0300
commitacdbb84c92dc8962194e0a4d65fbe8afc6bace7c (patch)
treeaad35466e3e7332a74bdcef93ddc17f7b057096b /libre/parabolaweb-utils/PKGBUILD
parentea2c8211a376cb8e6dfc6359dc7c29b0ec408c2a (diff)
parent8d96e40155e6b47de074ccb1eb10e051b71c6752 (diff)
downloadabslibre-acdbb84c92dc8962194e0a4d65fbe8afc6bace7c.tar.gz
abslibre-acdbb84c92dc8962194e0a4d65fbe8afc6bace7c.tar.bz2
abslibre-acdbb84c92dc8962194e0a4d65fbe8afc6bace7c.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/parabolaweb-utils/PKGBUILD')
-rw-r--r--libre/parabolaweb-utils/PKGBUILD49
1 files changed, 23 insertions, 26 deletions
diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD
index 2ab0c142e..0a49ce048 100644
--- a/libre/parabolaweb-utils/PKGBUILD
+++ b/libre/parabolaweb-utils/PKGBUILD
@@ -1,12 +1,7 @@
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
-. "${startdir:-.}/helper.sh"
-# provides:
-# _get_depends
-# _get_depends_nover (no version requirements)
-
-pkgname=parabolaweb-utils
-pkgver=20130714
+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')
@@ -14,27 +9,29 @@ license=('GPL2')
pkgrel=1
epoch=1
arch=('any')
-backup=('etc/conf.d/parabolaweb')
-if [[ -z $NODEPENDS ]]; then
- list_depends="${srcdir:-src}/$pkgname-$pkgver/list-depends"
- if ! [[ -f $list_depends ]]; then
- NODEPENDS=true makepkg -o
- fi
- depends=($(
- cd "${list_depends%/*}"
- bash "${list_depends##*/}"
- ))
-fi
-source=("https://projects.parabolagnulinux.org/packages/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2")
+source=(
+ "https://projects.parabolagnulinux.org/packages/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2"
+ "https://projects.parabolagnulinux.org/parabolaweb.git/plain/requirements_prod.txt"
+)
-package() {
+build() {
cd "$srcdir/$pkgname-$pkgver"
- 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"
+ prod_file="file://${srcdir}/requirements_prod.txt" make
+}
+
+package_parabolaweb-utils() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ depends=($(cat 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))
}
-md5sums=('1c09dd63340cda8bb9ac12273a3b9008')
+md5sums=('a6734335001c7695d5a57fb509f8a745'
+ 'c84e52d81683cb3d572571ac19be89ac')