summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e7db2154b35574edb4f7c1fd62e1ff0a6c53c67 (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
# Maintainer: Martin Thierer <thierer@web.de>

pkgname=nibtools-git
_pkgname=nibtools
pkgver=r682.2625325
pkgrel=1
pkgdesc="Commodore 1541/1571 disk image nibbler"
arch=('i686' 'x86_64')
url="https://c64preservation.com/dp.php?pg=nibtools"
license=('unknown')
depends=('opencbm')
makedepends=('git' 'cc65')
provides=('nibtools')
source=('git+https://github.com/OpenCBM/nibtools.git'
	'usleep.patch')
md5sums=('SKIP'
         'bd7d136a698bca9b161ab72622205c3b')

prepare() {
  cd "${srcdir}/${_pkgname}"
  patch -p1 -i ../usleep.patch
}

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  make -f GNU/Makefile CBM_LNX_PATH=/usr linux
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -D -m755 -t $pkgdir/usr/bin nibread nibwrite nibscan nibconv nibrepair nibsrqtest
}