From 55615d5b780b6f525347931dd3c10065c0e46864 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 24 Jun 2016 00:16:38 +0200 Subject: testing/prayer: improve abuild and fix code-style --- testing/prayer/APKBUILD | 52 +++++++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 32 deletions(-) (limited to 'testing/prayer') diff --git a/testing/prayer/APKBUILD b/testing/prayer/APKBUILD index 04b27a9e74..80c91bf168 100644 --- a/testing/prayer/APKBUILD +++ b/testing/prayer/APKBUILD @@ -1,45 +1,33 @@ -# Maintainer: # Contributor: Bartłomiej Piotrowski - +# Maintainer: pkgname=prayer pkgver=1.3.5 pkgrel=1 -pkgdesc='Lightweight webmail interface for IMAP servers' -url='http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/' -arch=all -license=GPL -depends= -makedepends='perl imap-dev openssl-dev db-dev linux-pam-dev tar tidyhtml-dev>=5.0.0' -subpackages= +pkgdesc="Lightweight webmail interface for IMAP servers" +url="http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/" +arch="all" +license="GPL" +depends="" +makedepends="perl imap-dev openssl-dev db-dev linux-pam-dev tar tidyhtml-dev>=5.0.0" source="ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/prayer-$pkgver.tar.gz - buildfix.patch - disable_ssl3.patch - makefile_install_config.patch - no_db_version_check.patch - htmltidy_buffio.patch - sighandling.patch - unbrand_accountd.patch - unbrand_cam_template.patch" - -prepare() { - cd "$srcdir"/$pkgname-$pkgver - - local i - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} + buildfix.patch + disable_ssl3.patch + makefile_install_config.patch + no_db_version_check.patch + htmltidy_buffio.patch + sighandling.patch + unbrand_accountd.patch + unbrand_cam_template.patch" +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$srcdir"/$pkgname-$pkgver - make || return 1 + cd "$builddir" + make } package() { - cd "$srcdir"/$pkgname-$pkgver - BROOT="$pkgdir" make install + cd "$builddir" + BROOT="$pkgdir" make install } md5sums="e5c632e9abd517ee91f1f1cf5fb0eaf3 prayer-1.3.5.tar.gz -- cgit v1.2.3