blob: b2b3ec363df6293459e8adf676a19fcd0fa52dc2 (
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
|
# Maintainer: Leonardo Miliani <leonardo AT leonardomiliani DOT com>
pkgname=sjasmplus-z00m128
pkgver=1.20.3
pkgrel=2
pkgdesc="SjASMplus is a Z80 cross-assembler"
arch=(x86_64)
url="https://github.com/z00m128/sjasmplus"
license=(BSD)
makedepends=(lua cmake)
source=("https://github.com/z00m128/sjasmplus/releases/download/v$pkgver/sjasmplus-$pkgver-src.tar.xz")
sha256sums=('343839b79bc8bc79f97ac0b3ac05ea9c17799aa561af46f3ac7a1da863b1b286')
build() {
cmake -B build -S sjasmplus-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSTEM_LUA=On \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
depends=(lua)
optdepends=('tolua++: integrate C/C++ code with Lua')
conflicts=(sjasmplus)
DESTDIR="$pkgdir" cmake --install build
install -m644 -Dt "${pkgdir}/usr/share/doc/${pkgname}" sjasmplus-${pkgver}/docs/{*.html,lua.gif}
install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" sjasmplus-${pkgver}/LICENSE.md
}
|