Added JSON module to base/perl-modules since it is a dependency for net/samba

Added code relating to psmisc in a subshell and discarded STRIP flag in base/procps-ng
This commit is contained in:
PktSurf 2023-03-17 12:11:33 +05:30
parent 4a7a115ed4
commit a1868cd456
2 changed files with 14 additions and 4 deletions

View file

@ -1,6 +1,6 @@
app=perl-modules
version=5.24.3
build=2sml
build=3sml
homepage="https://www.perl.org/"
download="https://www.perl.org/"
desc="Collection of support addons for default perl installation"
@ -14,6 +14,7 @@ htmlparserver=3.72
xmlparserver=2.44
xmlsimplever=2.22
parseyapp=1.21
jsonver=4.10
prepbuilddir() {
mkandenterbuilddir
@ -66,6 +67,11 @@ build() {
cp README $pkgdocs/README.PARSE-YAPP
prepperlpackage
# JSON module
tar xf $srcdir/JSON-"$jsonver".tar.?z*
cd JSON-"$jsonver"
prepperlpackage
# finally, XML-Simple module
tar xf $srcdir/XML-Simple-"$xmlsimplever".tar.?z*
cd XML-Simple-"$xmlsimplever"

View file

@ -14,24 +14,28 @@ prepbuilddir() {
cd $app-$version
fixbuilddirpermissions
(
tar xf $srcdir/psmisc-$psmiscversion.tar.?z*
cd psmisc-$psmiscversion
fixbuilddirpermissions
)
applypatch $srcdir/procps-ng-netbsd-curses.patch
}
build() {
STRIP=false \
CPPFLAGS="$CFLAGS -DGLOB_TILDE=0 -DAF_INET6=10 -DAF_INET=2" \
./configure \
--prefix="" \
--bindir=/bin \
--sbindir=/bin \
--disable-nls
--disable-nls
make V=1 LDFLAGS="-all-static"
make install DESTDIR=$pkg
cp COPYING* $pkgdocs/
tar xf $srcdir/psmisc-$psmiscversion.tar.?z*
cd psmisc-$psmiscversion
LDFLAGS="-static" \