blob: 3647bb5fe641143a97c2cff9997777f3c7e5ddb2 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=m4
pkgver=1.4.16
pkgrel=1
pkgdesc="GNU macro processor"
url="http://www.gnu.org/software/m4"
depends=
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"
# fix eglibc-2.16+ build issue
sed -i -e '/gets is a/d' \
lib/stdio.in.h || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir"
}
md5sums="a5dfb4f2b7370e9d34293d23fd09b280 m4-1.4.16.tar.gz"
|