diff options
author | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
commit | b7427268a9218ed3a0b8b24461e4b11d0ef9a048 (patch) | |
tree | 470cd3d30e1681a74367f1a9fd65288812ff33e4 /PKGBUILD | |
download | aur-b7427268a9218ed3a0b8b24461e4b11d0ef9a048.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..28cdb1248f4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> +# Contributor: Paul Préfontaine <paul+archlinuxaur@prefontaine.name> + +pkgname=h2o +pkgver=1.2.0 +pkgrel=2 +pkgdesc="Optimized HTTP server with support for HTTP/1.x and HTTP/2" +arch=('i686' 'x86_64') +depends=('libuv' 'libyaml' 'openssl' 'wslay') +makedepends=('cmake' 'make') +url="https://github.com/h2o/h2o" +license=('MIT') +source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/h2o/$pkgname/tar.gz/v$pkgver + h2o.service) +sha256sums=('09aacd84ea0a53eaffdc8e0c2a2cf1108bea5db81d5859a136221fd67f07833f' + 'dadc4d08e8149ac0f9f2156251a639380795d1fed2068958b487da88161d4bb7') +backup=('etc/h2o.conf') +provides=('h2o' 'libh2o') +conflicts=('libh2o') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Building...' + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make + make libh2o +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Installing license...' + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + msg2 'Installing documentation...' + install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" + + msg2 'Installing systemd service...' + install -Dm 644 "$srcdir/h2o.service" "$pkgdir/usr/lib/systemd/system/h2o.service" + + msg2 'Installing conf file...' + install -Dm 644 examples/h2o/h2o.conf "$pkgdir/etc/h2o.conf" + + msg2 'Installing...' + make DESTDIR="$pkgdir" install +} |