aboutsummaryrefslogtreecommitdiffstats
path: root/main/guile/APKBUILD
blob: c4563e300f798bd88cc5970b78776bdb4d67e0c3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=guile
pkgver=1.8.8
pkgrel=2
pkgdesc="Guile is a portable, embeddable Scheme implementation written in C"
url="http://www.gnu.org/software/guile/"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="gmp-dev libtool ncurses-dev texinfo"
depends=
install=
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	guile-1.8.7-gcc45.patch
	fix-defines.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-error-on-warning \
		|| return 1
	make LDFLAGS+="-lpthread" || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="18661a8fdfef13e2fcb7651720aa53f3  guile-1.8.8.tar.gz
608a4d2d7bc072d5edc34aa2be1f609f  guile-1.8.7-gcc45.patch
bd5fce3fa8fc1d82906b97f698b5d351  fix-defines.patch"
sha256sums="c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050  guile-1.8.8.tar.gz
edd5e94d3521db44c5ee345df8d999260dc41d212ad30fafe12fba3bdf7351af  guile-1.8.7-gcc45.patch
b6986585ee61662d6c13a294bd51c97ef4ead7754694ab9207bb7018c2f072bf  fix-defines.patch"
sha512sums="ede6feb90cd419d8763feb8c5169275490a653919573c4dfced025b74cf591072b3a10ffb9a3f6ee3fe7b0a0956ffcf434e0859b421455c8349cea56bf427db0  guile-1.8.8.tar.gz
4b15e8f04e6c45c088bb50ec4c12f40702f0ce38cb471b674b41c8d94be34e8ab9077a80e8cea6288b2744d7a7bc47d1dc606302102edf26e0309ace0c461946  guile-1.8.7-gcc45.patch
b19d72a179cae13bafe8aa9af15661b79406816d296042f0b39a2daa61446f3db82763fe17aa74d3a7f0194a63fe2d80424acaccda4e7288bb8047efdd0197ad  fix-defines.patch"