summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 300b707fa94fb58bb3d0af6f2fd3b88bd267a82e (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
40
41
42
43
44
45
46
# Maintainer: Henrik Holst <hholst80@gmail.com>
# Patch from here:
# https://bz-attachments.freebsd.org/attachment.cgi?id=155711&action=diff&format=raw&headers=1
pkgname=eukleides
pkgver=1.5.4
pkgrel=2
epoch=
pkgdesc="Eukleides is a computer language devoted to elementary plane geometry."
arch=(x86_64)
url="http://eukleides.org/"
license=('GPL')
groups=()
depends=()
makedepends=(gcc make flex bison texinfo texlive-core)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://eukleides.org/files/$pkgname-$pkgver.tar.bz2" "$pkgname-$pkgver.patch")
noextract=()
md5sums=(2c88fc857008c2ce23c7848c60621548 bbc5626dcdeb15aaf31ecb9050f28982)
validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
	patch -p0 -i "$srcdir/$pkgname-$pkgver.patch"
	sed -i "s@^PREFIX *=.*@PREFIX=$pkgdir/usr/@" Config
	# sed -i "s@^PAPER *=.*@PAPER=LETTER@" Config
	sed -i "s@ginstall-info@install-info@" doc/Makefile
}

build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
	cd "$pkgname-$pkgver"
	mkdir -p $pkgdir/usr/bin
	make install
}