summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50da73797af52fc9d57071218334690408b9447f (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
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>

pkgname=dps8m-git
_pkgname=dps8m
pkgver=2.0.1_rc2.r5.g377e49d6
pkgrel=1
pkgdesc='Simulator for the Multics dps-8/m mainframe'
arch=('x86_64')
url='http://ringzero.wikidot.com'
license=('ICU')
makedepends=('clang' 'git')
depends=('libuv')
conflicts=('dps8m')
source=("git+https://gitlab.com/dps8m/dps8m.git")
sha256sums=('SKIP')

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

build() {
	cd "$_pkgname"
	make
}

package() {
	cd "$_pkgname"

	install -d 755 "${pkgdir}/usr/bin"
	make INSTALL_ROOT="${pkgdir}/usr" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}