blob: e6883cf0662f4200f9a50bea346c26661d5596d9 (
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
|
# Maintainer: bilabila <bilabila@qq.com>
_srcname=LuaFormatter
_pkgname=lua-format
pkgname=$_pkgname
pkgver=1.3.6
pkgrel=8
pkgdesc='LuaFormatter - Code formatter for Lua'
arch=(x86_64 aarch64)
url=https://github.com/Koihik/LuaFormatter
provides=($_pkgname $_srcname)
conflicts=($_pkgname $_srcname)
license=(Apache2)
depends=()
makedepends=(git cmake)
source=('git+https://github.com/Koihik/LuaFormatter#tag=1.3.6')
sha512sums=(SKIP)
prepare() {
cd $_srcname
git submodule update --init
}
build() {
cd $_srcname
cmake -D BUILD_TESTS=OFF -D COVERAGE=OFF .
cmake --build .
}
package() {
install -Dm644 $_srcname/LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
install -Dm755 $_srcname/$_pkgname "$pkgdir"/usr/bin/$_pkgname
}
|