summaryrefslogtreecommitdiff
path: root/repo/devel/texinfo.xibuild
blob: 6d66823053c5b4f1429d9bf54471d971d1d51728 (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
#!/bin/bash

MAKEDEPS=(make )
DEPS=(ncurses gzip perl sh)

PKG_VER=6.8
SOURCE=https://ftp.gnu.org/gnu/texinfo/texinfo-$PKG_VER.tar.xz
DESC="GNU documentation system for reading, writing and converting info pages"

prepare () {
    # fix an issue when building with glibc-2.34 or later
    sed -e 's/__attribute_nonnull__/__nonnull/' \
    -i gnulib/lib/malloc/dynarray-skeleton.c
}

build () {
    ./configure --prefix=/usr
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
    make TEXMF=$PKG_DEST/usr/share/texmf install-tex
}