summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f780cfc20a809871cb52b90265b2d2063581d5f0 (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
38
39
# Maintainer: libele <libele@disroot.org>

pkgname=bwbasic
pkgver=3.20
pkgrel=5
pkgdesc="Bywater BASIC"
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://sourceforge.net/projects/bwbasic"
license=('GPL')
makedepends=('dos2unix')
source=("https://sourceforge.net/projects/bwbasic/files/bwbasic/version%20${pkgver}/bwbasic-${pkgver}.zip"
	'renum.patch')
md5sums=('fd4bf69515e62d1c92aa3f47038d034b'
         '0b79416d2ca28121e287450bce308949')
sha256sums=('ee18eefab7ed91ad1ad50ccab33eb038c4abd753595e19982890867f282339f1'
            '08409240ca8f704d02bda98929966e2058aa20ea7f3a4b9ca1c07a49043fca05')

prepare() {
  mkdir -p "${pkgdir}"/usr/share/doc/$pkgname

  cd "${srcdir}"
  patch -p2 < ${startdir}/renum.patch
  dos2unix configure
  chmod +x configure
}

build() {
  cd "${srcdir}"
  ./configure
  make
}

package() {
  cd "${srcdir}"
  install -Dm755 $pkgname "${pkgdir}"/usr/bin/$pkgname
  install -Dm644 README "${pkgdir}"/usr/share/doc/$pkgname/README
  install -Dm644 bwbasic.doc "${pkgdir}"/usr/share/doc/$pkgname/bwbasic.doc
  install -Dm644 DOCS/* "${pkgdir}"/usr/share/doc/$pkgname/
}