aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-13 13:34:43 -0300
committerShiz <hi@shiz.me>2017-05-14 03:35:06 +0200
commit673cacfbea8e17a416af43255dad9e332b4c0915 (patch)
tree761e36f496dd158a13af7b66eaef142295d947a4
parentebd279bc619188c761d55049c48c106b941b306f (diff)
downloadaports-673cacfbea8e17a416af43255dad9e332b4c0915.tar.bz2
aports-673cacfbea8e17a416af43255dad9e332b4c0915.tar.xz
community/hermes: modernize abuild
-rw-r--r--community/hermes/APKBUILD28
1 files changed, 6 insertions, 22 deletions
diff --git a/community/hermes/APKBUILD b/community/hermes/APKBUILD
index 3d330c3332..5f5e9571a4 100644
--- a/community/hermes/APKBUILD
+++ b/community/hermes/APKBUILD
@@ -7,44 +7,28 @@ pkgdesc="Hermes is an anti-spam transparent SMTP proxy"
url="http://hermes-project.com/"
arch="all"
license="GPL"
-depends=""
-depends_dev=""
makedepends="libspf2-dev sqlite-dev perl gettext-dev libressl-dev doxygen"
-install=""
subpackages="$pkgname-doc"
source="http://hermes-project.com/files/${pkgname}-${pkgver}.tar.bz2
Utils.cpp.patch"
-_builddir=${srcdir}/${pkgname}-${pkgver}
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir=${srcdir}/${pkgname}-${pkgver}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-spf \
- --enable-openssl || return 1
- make || return 1
+ --enable-openssl
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="61358b37c13f127632269b230a3eb382 hermes-1.9.tar.bz2
-95c21d75b4d5591ff3bb69f9f9d74587 Utils.cpp.patch"
-sha256sums="3c1691d70588f1ac373c0395512f2bba14a2e6870d77901f3e2a578610bee696 hermes-1.9.tar.bz2
-545253d8c1e0c368b73dab0cbd740de3853114327d61b0fe5a1018d0935f8b35 Utils.cpp.patch"
sha512sums="9861177cee7d4936e2221f3ff9f60c030385d6c2ab1cbc320f4e03880220117c580a11188e011f9051c79691e1ab8399c03be8cbbc4f18519a1a9b966bf767b9 hermes-1.9.tar.bz2
ac5859bed41c5b484adf8b42d66d69cf49966df84e664f9f6978d3c4fa6200858ea024c6631c2f1fd02c09d7f95e6102b3fce68b3f92f5223c4f8a253fd57d0c Utils.cpp.patch"