prtcreate: edit templates
portspage: fall back to $PWD when no args are passed
This commit is contained in:
parent
47c8552854
commit
c1676f0167
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
|
||||
make
|
||||
make DESTDIR="$PKG" install
|
||||
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
|
||||
cmake --build build
|
||||
DESTDIR="$PKG" cmake --install build
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -8,3 +8,4 @@
|
|||
|
||||
ninja -C build -j ${JOBS:-1}
|
||||
DESTDIR="$PKG" ninja -C build install
|
||||
|
||||
|
|
|
@ -11,3 +11,4 @@
|
|||
-o -name '*.packlist' \
|
||||
-o -name '*.pod' \) -delete
|
||||
find "$PKG" -depth -empty -delete
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
cd ${name#r4-}
|
||||
mkdir -p "$PKG"/usr/lib/R/library
|
||||
R CMD INSTALL . -l "$PKG"/usr/lib/R/library
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user