aboutsummaryrefslogtreecommitdiffstats
path: root/community/h2o
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-11-27 15:28:20 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-11-27 15:28:20 +0000
commit6aa8ad9f19e37b07e6081f3b294c44ccb3392f7b (patch)
tree1f4fe3dab9d84b32344c16517d341669748a00d6 /community/h2o
parentf75088679bfdacf239349862333eebf69d8992dd (diff)
downloadaports-6aa8ad9f19e37b07e6081f3b294c44ccb3392f7b.tar.bz2
aports-6aa8ad9f19e37b07e6081f3b294c44ccb3392f7b.tar.xz
community/h2o: modernize APKBUILD
Diffstat (limited to 'community/h2o')
-rw-r--r--community/h2o/APKBUILD30
1 files changed, 15 insertions, 15 deletions
diff --git a/community/h2o/APKBUILD b/community/h2o/APKBUILD
index e27330a078..06e3e2257a 100644
--- a/community/h2o/APKBUILD
+++ b/community/h2o/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Bennett Goble <nivardus@gmail.com>
pkgname=h2o
pkgver=2.2.3
-pkgrel=2
+pkgrel=3
pkgdesc="An optimized HTTP/1, HTTP/2 server written in C"
url="https://h2o.examp1e.net"
arch="all"
@@ -16,40 +16,40 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$
h2o.initd
h2o.logrotate"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
cmake \
-DBUILD_SHARED_LIBS=on \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_MRUBY=on \
- . || return 1
+ .
}
build() {
- cd "$_builddir"
- make -j1 || return 1
- make libh2o || return 1
+ cd "$builddir"
+ make -j1
+ make libh2o
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir/etc/init.d/$pkgname" || return 1
+ "$pkgdir/etc/init.d/$pkgname"
install -m644 -D "$srcdir"/$pkgname.logrotate \
- "$pkgdir"/etc/logrotate.d/$pkgname || return 1
+ "$pkgdir"/etc/logrotate.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.conf \
- "$pkgdir"/etc/$pkgname.conf || return 1
+ "$pkgdir"/etc/$pkgname.conf
- install -m644 -D "$_builddir"/examples/doc_root/index.html \
- "$pkgdir"/var/www/index.html || return 1
+ install -m644 -D "$builddir"/examples/doc_root/index.html \
+ "$pkgdir"/var/www/index.html
- install -m700 -d "$pkgdir"/var/log/$pkgname || return 1
+ install -m700 -d "$pkgdir"/var/log/$pkgname
}
sha512sums="f138667e8e4370102028da469e09e8b2ee2e5dc92f4513b35467aa2a2fb7b02bbda2b2d158bbf3198b26faeea48d5ec07a7ebab1d0cb3032c532d4e6323630f1 h2o-2.2.3.tar.gz