summaryrefslogtreecommitdiff
path: root/repo/system/perl.xibuild
blob: e75246a992f4ce7e793b689edd30fc72285c5e8f (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
#!/bin/bash

MAKEDEPS=(make )
DEPS=(gdbm glibc libxcrypt)

PKG_VER=5.34.0
SOURCE=https://www.cpan.org/src/5.0/perl-$PKG_VER.tar.gz
DESC="The Practical Extraction and Report Language"

build () {
    export BUILD_ZLIB=False
    export BUILD_BZIP2=0

    sh Configure -des -Dprefix=/usr -Dlibs=-lm -Uloclibpth -Ulocincpth

    make
}

check () {
    make test
}

package () {
    make DESTDIR=$PKG_DEST install 
    unset BUILD_ZLIB BUILD_BZIP2
}