diff options
author | Goran Nushkov | 2019-04-06 03:48:39 +0200 |
---|---|---|
committer | Goran Nushkov | 2019-04-06 03:48:39 +0200 |
commit | 8dc61b7b7b119c84ed2106984f5d4623f1caa693 (patch) | |
tree | 6753bd2d516aa41b447d303e8cedf08ffbfcd796 /PKGBUILD | |
parent | 56c8bbd929f36262a967fdc552ccde72f92427be (diff) | |
download | aur-8dc61b7b7b119c84ed2106984f5d4623f1caa693.tar.gz |
Fixed openresty location
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 22 insertions, 20 deletions
@@ -8,7 +8,7 @@ arch=('any') url="https://getkong.org" license=('Apache') groups=('') -depends=('libyaml' 'openresty' 'openssl' 'pcre' 'zlib' 'rsync') +depends=('libyaml' 'luajit' 'openresty' 'openssl' 'pcre' 'zlib' 'rsync') options=('!strip' '!emptydirs') install=${pkgname}.install source=("https://bintray.com/kong/kong-community-edition-deb/download_file?file_path=dists/kong-community-edition-1.1.0.stretch.all.deb") @@ -27,33 +27,35 @@ package(){ install -D -m644 "/opt/openresty/pod/nginx/license_copyright.pod" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 "/opt/openresty/pod/nginx/license_copyright.pod" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" - # Fix openresty location - cd usr/local/bin/ - sed -i "s+usr/local/openresty+opt/openresty+g" kong - sed -i "s+usr/local/share/lua+usr/share/lua+g" kong + luarocks install kong 1.1.0-0 - sed -i "s+usr/local/openresty+opt/openresty+g" json2lua - sed -i "s+usr/local/share/lua+usr/share/lua+g" json2lua + # # Fix openresty location + # cd usr/local/bin/ + # sed -i "s+usr/local/openresty+opt/openresty+g" kong + # sed -i "s+usr/local/share/lua+usr/share/lua+g" kong - sed -i "s+usr/local/openresty+opt/openresty+g" lapis - sed -i "s+usr/local/share/lua+usr/share/lua+g" lapis + # sed -i "s+usr/local/openresty+opt/openresty+g" json2lua + # sed -i "s+usr/local/share/lua+usr/share/lua+g" json2lua + + # sed -i "s+usr/local/openresty+opt/openresty+g" lapis + # sed -i "s+usr/local/share/lua+usr/share/lua+g" lapis - sed -i "s+usr/local/openresty+opt/openresty+g" lua2json - sed -i "s+usr/local/share/lua+usr/share/lua+g" lua2json + # sed -i "s+usr/local/openresty+opt/openresty+g" lua2json + # sed -i "s+usr/local/share/lua+usr/share/lua+g" lua2json - sed -i "s+usr/local/openresty+opt/openresty+g" luarocks - sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks + # sed -i "s+usr/local/openresty+opt/openresty+g" luarocks + # sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks - sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-5.1 - sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-5.1 + # sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-5.1 + # sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-5.1 - sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-admin - sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-admin + # sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-admin + # sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-admin - sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-admin-5.1 - sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-admin-5.1 + # sed -i "s+usr/local/openresty+opt/openresty+g" luarocks-admin-5.1 + # sed -i "s+usr/local/share/lua+usr/share/lua+g" luarocks-admin-5.1 - cd "${pkgdir}" + # cd "${pkgdir}" mkdir usr/bin 2> /dev/null; mv usr/local/bin/* usr/bin; rm -rf usr/local/bin |