diff options
author | Narrat | 2021-01-08 22:23:12 +0100 |
---|---|---|
committer | Narrat | 2021-01-08 22:23:12 +0100 |
commit | 19b3393f3e6f50bbd810070f21e833063731966b (patch) | |
tree | bf5adc29e6db2f57bc5a9f28ccb5d84ac087117b | |
download | aur-19b3393f3e6f50bbd810070f21e833063731966b.tar.gz |
Prosody-mod-http-libjs: initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e5fff02d35ec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = prosody-mod-http-libjs + pkgdesc = Serve common Javascript libraries + pkgver = 2020.09.11 + pkgrel = 1 + url = https://modules.prosody.im/mod_http_libjs.html + arch = any + license = MIT + makedepends = mercurial + depends = prosody + source = hg+https://hg.prosody.im/prosody-modules/#revision=de2390d6bbe4 + sha1sums = SKIP + +pkgname = prosody-mod-http-libjs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8254eba45c2c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Lex Black <autumn-wind@web.de> + +pkgname=prosody-mod-http-libjs +pkgver=2020.09.11 +pkgrel=1 +_commit="de2390d6bbe4" +pkgdesc="Serve common Javascript libraries" +arch=('any') +url="https://modules.prosody.im/mod_http_libjs.html" +license=('MIT') +depends=('prosody') +makedepends=('mercurial') +source=("hg+https://hg.prosody.im/prosody-modules/"#revision=$_commit) +sha1sums=('SKIP') + + +package() { + cd "${srcdir}/prosody-modules/mod_http_libjs" + find . -type f -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/lib/prosody/modules/{}" \; + find . -type f ! -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/share/doc/${pkgname}/{}" \; +} |