summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85ee5ef6f531726708399214e7a5caafdae3e1dd (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
# jzip z-code game interpreter for Infocom games

# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=jzip
_pkgname=Jzip
pkgver=2.1
_dlpkgver=21-10oct2000
_dlverdate=10%20Oct%202000
pkgrel=12
pkgdesc="Jzip is an interpreter for games in the Infocom Zcode story file format"
url="http://jzip.sourceforge.net/"
depends=(ncurses)
source=(https://downloads.sourceforge.net/project/$pkgname/$_pkgname/$_dlverdate/$pkgname$_dlpkgver.zip makefile-patch.diff LICENSE)
md5sums=('4c03c95bec15e45477899c12a545fc1d' '1625afeb6da07096571d3ccc964c01af' '54ec2719ddf62fd3805c732f058f1706')
arch=('i686' 'x86_64')
license=('custom')

build() {
  cd $srcdir
  cp unixio.mak Makefile

  # apply patch to makefile
  patch -Np0 < $srcdir/makefile-patch.diff

  make || return 1
}

package() {
  install -D -m755 $pkgname $pkgdir/usr/bin/$pkgname
  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}