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

View file

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