summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFijxu2024-09-02 15:11:49 -0400
committerFijxu2024-09-02 15:11:49 -0400
commit7f65e322d90c5a39a2916d01b598a83b9f9c8c16 (patch)
treea0053a20b71b23966fea28e141724dda0806e729
downloadaur-7f65e322d90c5a39a2916d01b598a83b9f9c8c16.tar.gz
init
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..13ea0a2715cf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = lua-resty-http
+ pkgdesc = Lua HTTP client cosocket driver for OpenResty / ngx_lua
+ pkgver = 0.17.2
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/openresty/lua-resty-core
+ arch = any
+ license = BSD-2-Clause
+ depends = luajit
+ depends = lua-resty-core
+ depends = nginx
+ source = lua-resty-http-0.17.2.tar.gz::https://github.com/ledgetech/lua-resty-http/archive/v0.17.2.tar.gz
+ sha256sums = 3da18ca8582243eff28302591e36651dc7fab046e77336aa4a6fa718bccce4a2
+
+pkgname = lua-resty-http
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0eeafe7d8ed4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Fijxu <fijxu at nadeko dot net>
+# from: github
+# what: ledgetech/lua-resty-http
+# match! rc[0-9]*$
+
+pkgname=lua-resty-http
+pkgver=0.17.2
+pkgrel=1
+epoch=1
+
+pkgdesc='Lua HTTP client cosocket driver for OpenResty / ngx_lua'
+arch=('any')
+depends=('luajit' 'lua-resty-core' 'nginx')
+url="https://github.com/openresty/lua-resty-core"
+license=('BSD-2-Clause')
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ledgetech/$pkgname/archive/v$pkgver.tar.gz")
+
+sha256sums=('3da18ca8582243eff28302591e36651dc7fab046e77336aa4a6fa718bccce4a2')
+
+build() {
+ cd "$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" PREFIX=/usr LUA_LIB_DIR='$(PREFIX)/share/lua/$(LUA_VERSION)' LUA_VERSION=5.1 install
+}