diff options
author | Kat | 2018-05-26 18:26:43 -0700 |
---|---|---|
committer | Kat | 2018-05-26 18:26:43 -0700 |
commit | a7ef32a4d188677df75be0c59a4ed8bac6abafde (patch) | |
tree | 2e1cb79a296e6dd864c88cfa153b756cf1a2a641 | |
parent | 8d5a210c2f53a1a11b4ad5b139953bec9439abc2 (diff) | |
download | aur-a7ef32a4d188677df75be0c59a4ed8bac6abafde.tar.gz |
Updated to v1.9.6.1
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 10 insertions, 11 deletions
@@ -1,6 +1,6 @@ pkgbase = katweb pkgdesc = A lightweight static web server and reverse proxy designed for the modern web. - pkgver = 1.9.6 + pkgver = 1.9.6.1 pkgrel = 1 url = https://github.com/kittyhacker101/KatWeb arch = any @@ -10,8 +10,7 @@ pkgbase = katweb makedepends = glibc options = !strip options = upx - backup = etc/katweb/conf.json - source = https://github.com/kittyhacker101/KatWeb/archive/v1.9.6.tar.gz + source = https://github.com/kittyhacker101/KatWeb/archive/v1.9.6.1.tar.gz sha256sums = SKIP pkgname = katweb @@ -1,6 +1,6 @@ # Maintainer: kittyhacker101 <kittyhacker101@protonmail.com> pkgname=katweb -pkgver=1.9.6 +pkgver=1.9.6.1 pkgrel=1 pkgdesc="A lightweight static web server and reverse proxy designed for the modern web." arch=("any") @@ -10,10 +10,10 @@ makedepends=('git' 'go' 'glibc') source=("https://github.com/kittyhacker101/KatWeb/archive/v$pkgver.tar.gz") sha256sums=('SKIP') options=('!strip' 'upx') -backup=("etc/katweb/conf.json") prepare() { go get "golang.org/x/crypto/acme/autocert" "github.com/yhat/wsutil" "github.com/klauspost/compress/gzip" + patch < aur.patch } build() { @@ -24,10 +24,10 @@ build() { package() { cd "$srcdir/KatWeb-$pkgver" install -D -m755 "./katweb" -t "$pkgdir/usr/bin/" - mkdir -p "$pkgdir/etc/katweb" - if [ ! -d "/etc/katweb" ]; then - cp -r -n "./html" "$pkgdir/etc/katweb/html" - cp -r -n "./ssl" "$pkgdir/etc/katweb/ssl" - fi - cp "./conf.json" "$pkgdir/etc/katweb/conf.json" + mkdir -p "$pkgdir/usr/share/katweb" + + install -D -m 0644 "html/index.html" "$pkgdir/usr/share/katweb/html/index.html" + install -D -m 0644 "ssl/server.crt" "$pkgdir/usr/share/katweb/ssl/server.crt" + install -D -m 0644 "ssl/server.key" "$pkgdir/usr/share/katweb/ssl/server.key" + install -D -m 0644 --backup="conf.json.old" "conf.json" "$pkgdir/usr/share/katweb/conf.json" } |