diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f8a652665589 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = hptools-git + pkgdesc = Tools from HP for assembling Saturn Assembly Language and compiling SysRPL. + pkgver = r4.dfa489f + pkgrel = 1 + url = https://github.com/martinyrm/hptools + arch = x86_64 + license = GPL + makedepends = git + provides = hptools + conflicts = hptools + source = hptools-git::git+https://github.com/martinyrm/hptools#branch=master + md5sums = SKIP + +pkgname = hptools-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05c9fe4a0fa4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Martin Radulov <martin.yr@pm.me> +pkgname=hptools-git +pkgver=r4.dfa489f +pkgrel=1 +pkgdesc="Tools from HP for assembling Saturn Assembly Language and compiling SysRPL." +arch=('x86_64') +url="https://github.com/martinyrm/hptools" +license=('GPL') +makedepends=('git') +provides=("hptools") +conflicts=("hptools") +source=("$pkgname::git+https://github.com/martinyrm/hptools#branch=master") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname}" + make +} + +build() { + cd "$srcdir/${pkgname}/$CARCH-unknown-linux-gnu" + make +} + + +package() { + cd "$srcdir/${pkgname}/$CARCH-unknown-linux-gnu" + install -Dm 755 -t "$pkgdir/usr/bin/" sasm rplcomp sload makerom + + +} |