aboutsummaryrefslogtreecommitdiffstats
path: root/main/m4/APKBUILD
blob: 84a701ca03066a6b10cf60df80ef88e9e4b347da (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=m4
pkgver=1.4.18
pkgrel=0
pkgdesc="GNU macro processor"
url="https://www.gnu.org/software/m4"
depends=
makedepends=texinfo
arch="all"
license="GPL"
subpackages="m4-doc"
source="ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	LIBS="-lrt" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}

md5sums="a077779db287adf4e12a035029002d28  m4-1.4.18.tar.gz"
sha256sums="ab2633921a5cd38e48797bf5521ad259bdc4b979078034a3b790d7fec5493fab  m4-1.4.18.tar.gz"
sha512sums="29254dd4267a093e8d9da3a26df8b02564044cdb4506be539ec1aff4e5d406477bcf32f5e813c840f3aec77293bfe2cdde18f6a21724a7e0bfff646ec88b74ae  m4-1.4.18.tar.gz"