perl/perl/perl.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

#!/bin/sh
#
# Copyright (c) 2019 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

PKGNAME=perl
PKGVERSION=5.28.1
PKGREVISION=1
PKGLICENSE="GPLv10 CUSTOM"
PKGSUMMARY="perl programming language"
PKGDOWNLOAD="https://www.cpan.org/src/5.0/$PKGNAME-$PKGVERSION.tar.xz"
PKGDEPENDS="bzip2 db gdbm zlib"

: ${CHOST:=$(uname -m)-linux-musl}
: ${CBUILD:=$(uname -m)-linux-musl}
: ${CC:=clang}
: ${CFLAGS:=-O2}
: ${LDFLAGS:=}
: ${LIBS:=}

build()
{
	rm -rf $PKGNAME-$PKGVERSION
	tar xvf $PKGNAME-$PKGVERSION.tar.xz
	cd $PKGNAME-$PKGVERSION

	BUILD_ZLIB=0 \
	BUILD_BZIP2=0 \
	./Configure -des \
		-Dcc="$CC" \
		-Doptimize="$CFLAGS" \
		-Dprefix=/ \
		-Dprivlib=/share/perl5/core_perl \
		-Darchlib=/lib/perl5/core_perl \
		-Dvendorprefix=/ \
		-Dvendorlib=/share/perl5/vendor_perl \
		-Dvendorarch=/lib/perl5/vendor_perl \
		-Dsiteprefix=/local \
		-Dsitelib=/local/share/perl5/site_perl \
		-Dsitearch=/local/lib/perl5/site_perl \
		-Dlocincpth=' ' \
		-Duselargefiles \
		-Dusethreads \
		-Duseshrplib \
		-Dd_semctl_semun \
		-Dman1dir=/share/man/man1 \
		-Dman3dir=/share/man/man3 \
		-Dinstallman1dir=/share/man/man1 \
		-Dinstallman3dir=/share/man/man3 \
		-Dman1ext='1pm' \
		-Dman3ext='3pm' \
		-Dcf_by='Vanilla' \
		-Ud_csh \
		-Dusenm \

	make
	make install DESTDIR=$DESTDIR

	cd ..
	rm -rf $PKGNAME-$PKGVERSION
}

mercurial