blob: 9913746e2cf181bc0f11aea956ee026a03041487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Maintainer: HelloImWar <helloimwar at proton dot me>
pkgname=(lua-promise-async-git lua51-promise-async-git lua52-promise-async-git lua53-promise-async-git neovim-promise-async-git)
pkgver=1.0.0.r1.g842dca3
pkgrel=2
pkgdesc="Promise & Async in Lua"
arch=('any')
url="https://github.com/kevinhwang91/promise-async"
license=('BSD')
makedepends=('git')
source=("lua-promise-async-git::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd lua-promise-async-git
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package_lua-promise-async-git() {
provides=(lua-promise-async)
conflicts=(lua-promise-async)
cd lua-promise-async-git/lua
find . \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/lua/5.4/{}" \;
cd ..
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_lua51-promise-async-git() {
provides=(lua51-promise-async)
conflicts=(lua51-promise-async)
cd lua-promise-async-git/lua
find . \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/lua/5.1/{}" \;
cd ..
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_lua52-promise-async-git() {
provides=(lua52-promise-async)
conflicts=(lua52-promise-async)
cd lua-promise-async-git/lua
find . \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/lua/5.2/{}" \;
cd ..
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_lua53-promise-async-git() {
provides=(lua53-promise-async)
conflicts=(lua53-promise-async)
cd lua-promise-async-git/lua
find . \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/lua/5.3/{}" \;
cd ..
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_neovim-promise-async-git() {
depends=(neovim)
provides=(neovim-promise-async)
conflicts=(neovim-promise-async)
cd lua-promise-async-git/lua
find . \
-type f \
-exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/pack/plugins/start/neovim-promise-async-git/lua/{}" \;
cd ..
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|