diff options
author | Philipp A | 2020-02-08 14:54:53 +0100 |
---|---|---|
committer | Philipp A | 2020-02-08 14:54:53 +0100 |
commit | 6960fe22de01afcf0fb9cded496bd4419dad7728 (patch) | |
tree | 6c3df28b6978bfcd43fb193f0c6ae52f4b55e97d | |
download | aur-6960fe22de01afcf0fb9cded496bd4419dad7728.tar.gz |
init
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..33ac32096531 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = digestif + pkgdesc = A code analyzer and Language Server Protocol implementation for [La|Con|Bib]TeX[t] documents. + pkgver = 0.2 + pkgrel = 1 + url = https://github.com/astoff/digestif + arch = any + makedepends = luarocks + depends = lua + depends = lua-lpeg + depends = lua-dkjson + source = digestif-0.2.tar.gz::https://github.com/astoff/digestif/archive/0.2.tar.gz + sha256sums = eb7cf6e277e9eab68a5eeace2d904d5689b9d93ba7dff975da77d71a522c6140 + +pkgname = digestif + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8bba9d8c732d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/ +/pkg/ +/*.tar.gz +/*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..32ff83686175 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=digestif +pkgver=0.2 +pkgrel=1 +arch=(any) +url="https://github.com/astoff/$pkgname" +pkgdesc='A code analyzer and Language Server Protocol implementation for [La|Con|Bib]TeX[t] documents.' +depends=(lua lua-lpeg lua-dkjson) +makedepends=(luarocks) +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('eb7cf6e277e9eab68a5eeace2d904d5689b9d93ba7dff975da77d71a522c6140') + +build() { + cd "$srcdir/$pkgname-$pkgver" + sed "s/version = \"dev-1\"/version = \"$pkgver-1\"/" "$pkgname-dev-1.rockspec" > "$pkgname-$pkgver-1.rockspec" + luarocks build --pack-binary-rock --deps-mode=none "$pkgname-$pkgver-1.rockspec" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + luarocks install --tree="$pkgdir/usr/" --deps-mode=none "$pkgname-$pkgver-1.rockspec" + sed -i "s|'.*?/bin/$pkgname'|'/usr/lib/luarocks/rocks-5.3/digestif/$pkgdir-1/$pkgname'|" "$pkgdir/usr/bin/digestif" + # remove luarocks-created root manifest + rm "$pkgdir/usr/lib/luarocks/rocks-5.3/manifest" +} |