diff options
author | Goran Nushkov | 2019-04-02 04:50:36 +0200 |
---|---|---|
committer | Goran Nushkov | 2019-04-02 04:50:36 +0200 |
commit | 6ac1c7c5f4f9c17757ab6f99e95b29cef497eab6 (patch) | |
tree | 6bc8c089e1d9f653ed36f0396e75012b517965eb | |
download | aur-6ac1c7c5f4f9c17757ab6f99e95b29cef497eab6.tar.gz |
Added PKGBUILD/tar.xz
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | kong-community-edition.install | 9 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ddf00ad33e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = kong-community-edition + pkgdesc = Kong is a distributed gateway for APIs and Microservices, focused on high performance and reliability. + pkgver = 1.1.0 + pkgrel = 1 + url = https://getkong.org + install = kong-community-edition.install + arch = any + license = Apache + depends = libyaml + depends = luajit + depends = openssl + depends = pcre + depends = zlib + options = !strip + options = !emptydirs + source = git+https://github.com/Kong/kong.git#1.1.0 + sha512sums = 755e7b1b2cfae427c1dc49ef5bd0dff72b06fda690438f2b831762268313ce53aa14d3f42d2b8f13f6c3cb3643ef1aa74ffde7ccac14b80dd3fc527d3be5204b + +pkgname = kong-community-edition + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a881d8e021bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: nushkovg +# Contributor: nushkovg +pkgname=kong-community-edition +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Kong is a distributed gateway for APIs and Microservices, focused on high performance and reliability." +arch=('any') +url="https://getkong.org" +license=('Apache') +groups=('') +depends=('libyaml' 'luajit' 'openssl' 'pcre' 'zlib') +options=('!strip' '!emptydirs') +install=${pkgname}.install +source=("git+https://github.com/Kong/kong.git#1.1.0") +sha512sums=('755e7b1b2cfae427c1dc49ef5bd0dff72b06fda690438f2b831762268313ce53aa14d3f42d2b8f13f6c3cb3643ef1aa74ffde7ccac14b80dd3fc527d3be5204b') + +package(){ + # Enter the dir + cd "$srcdir" + + # Extract package data + # tar xzf data.tar.gz -C "${pkgdir}" + + # Fix directories structure differencies + cd "${pkgdir}" + + install -D -m644 "/usr/local/openresty/pod/nginx/license_copyright.pod" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 "/usr/local/openresty/pod/nginx/license_copyright.pod" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" + mkdir usr/bin 2> /dev/null; mv usr/local/bin/* usr/bin; rm -rf usr/local/bin + + mv usr/local/* usr; rm -rf usr/local + + cd .. + +} diff --git a/kong-community-edition.install b/kong-community-edition.install new file mode 100644 index 000000000000..d17bd4595856 --- /dev/null +++ b/kong-community-edition.install @@ -0,0 +1,9 @@ +post_install() { + mkdir -p /etc/kong + mv /usr/lib/luarocks/rocks/kong/1.1.0-0/kong.conf.default /etc/kong/kong.conf.default + +} + +post_upgrade() { + post_install +} |