comparison Templates/build/perl.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents 6710613b88b9
children 44712c9002e9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
23 PKGWWW="http://example.org" 23 PKGWWW="http://example.org"
24 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz" 24 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz"
25 PKGDEPENDS="perl" 25 PKGDEPENDS="perl"
26 # PKGOPTIONS="FOO BAR BAZ" 26 # PKGOPTIONS="FOO BAR BAZ"
27 27
28 rm -rf $PKGNAME-$PKGVERSION 28 build()
29 tar xvf $PKGNAME-$PKGVERSION.tar.gz 29 {
30 cd $PKGNAME-$PKGVERSION 30 rm -rf $PKGNAME-$PKGVERSION
31 tar xvf $PKGNAME-$PKGVERSION.tar.gz
32 cd $PKGNAME-$PKGVERSION
31 33
32 perl Makefile.PL INSTALLDIRS=vendor 34 perl Makefile.PL INSTALLDIRS=vendor
33 make DESTDIR=$DESTDIR install 35 make DESTDIR=$DESTDIR install
34 36
35 cd .. 37 cd ..
36 rm -rf $PKGNAME-$PKGVERSION 38 rm -rf $PKGNAME-$PKGVERSION
39 }