summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b21120888d9b7e0fc3107ccdd48ab22edea108ea (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Your Name <youremail@domain.com>
pkgname=mkhexgrid
pkgver=0.1.1
pkgrel=1
epoch=
pkgdesc="Hex Grid Creator"
arch=("x86_64")
url="http://www.nomic.net/~uckelman/mkhexgrid/"
license=('GPL')
groups=()
depends=("gd")
makedepends=("boost")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://www.nomic.net/~uckelman/mkhexgrid/releases/mkhexgrid-0.1.1.src.tar.bz2")
noextract=()
md5sums=("5a0bdedbee65c97144288cd91e4415db")
validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
	cat <<'EOF' | patch -p2
--- src/mkhexgrid-0.1.1/mkhexgrid.cpp	2007-01-10 07:37:42.000000000 -0600
+++ src/mkhexgrid-0.1.1/mkhexgrid.cpp	2016-09-18 21:30:27.153331541 -0500
@@ -148,7 +148,7 @@
       Grid g(opt);
       g.draw();
    }
-   catch (exception &e) {
+   catch (std::exception &e) {
       cerr << argv[0] << ": " << e.what() << endl;
       exit(1);
    }
EOF
	cat <<'EOF' | patch -p2
--- src/mkhexgrid-0.1.1/png.cpp	2007-01-10 07:37:42.000000000 -0600
+++ src/mkhexgrid-0.1.1/png.cpp	2016-09-18 21:39:16.996664397 -0500
@@ -24,6 +24,7 @@
 #include <exception>
 #include <stdexcept>
 #include <string>
+#include <cstring>
 #include <sstream>
 using namespace std;
EOF
}
build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/usr" install
}