summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 035838a44c8aa9dcb1a28329b26a67bad6dae05c (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
# Maintainer: Maxim Logaev <maximlogaev2001ezro@gmail.com>

pkgname=zasm-git
_name=zasm
pkgver=4.4.13.r0.gb91d51d
pkgrel=1
pkgdesc='Z80/8080/Z180 assembler'
arch=('any')
url="https://k1.spdns.de/Develop/Projects/zasm/Distributions/"
license=('BSD')
provides=('zasm')
depends=('zlib')
makedepends=('git')
conflicts=('zasm')

source=("git+https://github.com/Megatokio/zasm")
sha256sums=('SKIP')

pkgver() {
  cd $_name
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $_name
  git submodule init
  git submodule update
}

build() {
  cd $_name
  make
}

package() {
  mkdir -p $pkgdir/usr/bin
  install -Dm755 $_name/zasm $pkgdir/usr/bin/zasm
}