summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca96bf3fa6af74c312b760da82ac0c9dbddca641 (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
# Maintainer:  Beej <beej@beej.us>
# Maintainer:  Michiel Broek <mbse at mbse eu>
pkgname=cpmtools
pkgver=2.20
pkgrel=1
pkgdesc="Tools to access CP/M disks"
arch=('i686' 'x86_64')
url="http://www.moria.de/~michael/cpmtools/"
license=('GPL')
depends=(ncurses)
source=(http://www.moria.de/~michael/cpmtools/files/$pkgname-$pkgver.tar.gz ecsys.drives z80pack.drives)
md5sums=('675dd715c93469330833c8b67abadcda'
         'c54b18fbafcb867a014cc814ed2eb93e'
         '2eef83b5fbc21870743a6eb871fff4b5')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure  --prefix=/usr || exit 1
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/usr/share/man/man1
  mkdir -p $pkgdir/usr/share/man/man5
  mkdir -p $pkgdir/usr/share/doc/$pkgname-$pkgver

  make BINDIR=$pkgdir/usr/bin MANDIR=$pkgdir/usr/share/man prefix=$pkgdir/usr install
  cat $srcdir/*.drives >> $pkgdir/usr/share/diskdefs

  cp -a COPYING INSTALL NEWS README* $pkgdir/usr/share/doc/$pkgname-$pkgver
  chmod 644 $pkgdir/usr/share/doc/$pkgname-$pkgver/*
}