prtcreate: edit templates

portspage: fall back to $PWD when no args are passed
This commit is contained in:
John McQuah 2024-04-21 02:08:56 +00:00
parent 47c8552854
commit c1676f0167
9 changed files with 26 additions and 3 deletions

View File

@ -97,6 +97,7 @@ sub parse_args {
push @updates, $arg;
}
}
$options{directory} = "." if (! $options{directory});
}
sub main {
@ -121,7 +122,7 @@ sub main {
open(my $fS, $stylepage) or die "style page missing! please reinstall $ARGV[0]";
while (<$fS>) {
if (m/<(title|h[1-3])>/) {
s/(title|h[1-3])>[^<]*</\1>$options{title}</;
s/(title|h[1-3])>[^<]*</$1>$options{title}</;
}
print;
}

View File

@ -4,3 +4,4 @@
make
make DESTDIR="$PKG" install

View File

@ -8,3 +8,4 @@
cmake --build build
DESTDIR="$PKG" cmake --install build

View File

@ -5,5 +5,6 @@
-Db_pie=true \
-Db_lto=true
meson compile -C build
meson compile -C build -j ${JOBS:-1}
DESTDIR="$PKG" meson install -C build

View File

@ -8,3 +8,4 @@
ninja -C build -j ${JOBS:-1}
DESTDIR="$PKG" ninja -C build install

View File

@ -11,3 +11,4 @@
-o -name '*.packlist' \
-o -name '*.pod' \) -delete
find "$PKG" -depth -empty -delete

View File

@ -1,3 +1,10 @@
cd ${name#*-}-$version
/usr/bin/pip3 install --isolate --root="$PKG" --ignore-installed --no-deps .
find $PKG \( -iname "README*" -o \
-iname INSTALLER -o \
-iname REQUESTED -o \
-iname "LICENSE*" \) -delete
chmod -R g-w $PKG

View File

@ -1,4 +1,13 @@
cd ${name#*-}-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root="$PKG" --skip-build
/usr/bin/python3 setup.py install \
--prefix=/usr \
--root="$PKG" \
--skip-build \
--optimize=1
find $PKG \( -iname "README*" -o \
-iname INSTALLER -o \
-iname REQUESTED -o \
-iname "LICENSE*" \) -delete

View File

@ -1,3 +1,4 @@
cd ${name#r4-}
mkdir -p "$PKG"/usr/lib/R/library
R CMD INSTALL . -l "$PKG"/usr/lib/R/library