summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0e891de87accaf5a783129f51a9f3b7ee4de15b (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
# Maintainer:  Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: scj <scj archlinux us>
# Contributor: jorge_barroso <jorge.barroso.11@gmail.com

pkgname=4th
pkgver=3.62.5
pkgrel=1
pkgdesc="A Forth Compiler"
arch=('i686' 'x86_64')
url="http://www.xs4all.nl/~thebeez/4tH/index.html"
license=('LGPL')
source=("4th-${pkgver}-unix.tar.gz::http://sourceforge.net/projects/forth-4th/files/4th-${pkgver}/4th-${pkgver}-unix.tar.gz/download")
sha256sums=('f822f7dd8cfb0b1744a62d653c6efe933578ae1789ec60a088509a38bca4b4fc')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}-unix/sources/"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}-unix/sources/"
	install -D -m644 "../COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  install -d "${pkgdir}/usr/"{share/doc/4th,lib,bin}
  make BINARIES="${pkgdir}/usr/bin" \
       LIBRARIES="${pkgdir}/usr/lib" \
       DOCDIR="${pkgdir}/usr/share/doc" \
       MANDIR="${pkgdir}/usr/share/man" install
}