blob: de5a47e085f1ad312d283c9b22fd2fec4e935b4e (
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
|
# Maintainer: Laurent Carlier <lordheavym@archlinux.org>
pkgname=rasm
pkgver=2.2.11
pkgrel=1
pkgdesc="Powerful Z80 assembler"
url="https://github.com/EdouardBERGE/rasm"
license=('custom')
arch=('x86_64')
makedepends=('upx')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/EdouardBERGE/rasm/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('2dd757576761a3db38f96a8108d7b31991ad34a3dbabdde352d0f04c1711e100')
prepare() {
cd "${pkgname}-${pkgver}"
sed -i "s#./upx#upx#g" makefile
}
build() {
cd "${pkgname}-${pkgver}"
make release
}
check() {
cd "${pkgname}-${pkgver}"
./rasm.exe -autotest
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 rasm.exe "${pkgdir}"/usr/bin/rasm.exe
install -dm755 "${pkgdir}"/usr/share/licenses/"${pkgname}"/{ZX0-main,libdivsufsort}
install -m644 ZX0-main/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/ZX0-main/
install -m644 apultra-master/src/libdivsufsort/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/libdivsufsort/
}
|