mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
main/haserl: modernize
- Use default_prepare instead of custom patch logic - Use builddir - Use amove - Remove unused variable in _split
This commit is contained in:
parent
d25d41ac89
commit
8a27a4b46b
@ -22,21 +22,16 @@ source="https://downloads.sourceforge.net/haserl/haserl-$pkgver.tar.gz"
|
|||||||
# 0.9.36-r0:
|
# 0.9.36-r0:
|
||||||
# - CVE-2021-29133
|
# - CVE-2021-29133
|
||||||
|
|
||||||
_sdir="$srcdir"/$pkgname-$pkgver
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_sdir"
|
default_prepare
|
||||||
for i in $source; do
|
|
||||||
case $i in
|
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
sed -i -e 's/^ /\t/' src/Makefile.am
|
sed -i -e 's/^ /\t/' src/Makefile.am
|
||||||
rm -f src/haserl_lualib.inc
|
rm -f src/haserl_lualib.inc
|
||||||
|
|
||||||
aclocal && autoconf && autoheader && automake --add-missing
|
aclocal && autoconf && autoheader && automake --add-missing
|
||||||
|
|
||||||
for _i in $_luaversions; do
|
for _i in $_luaversions; do
|
||||||
cp -r "$_sdir" "$srcdir"/build-$_i
|
cp -r "$builddir" "$srcdir"/build-$_i
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,14 +58,12 @@ package() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_split() {
|
_split() {
|
||||||
local d= _ver=$1
|
local _ver=$1
|
||||||
pkgdesc="Html And Shell Embedded Report Language with Lua $_ver support"
|
pkgdesc="Html And Shell Embedded Report Language with Lua $_ver support"
|
||||||
replaces="$pkgname"
|
replaces="$pkgname"
|
||||||
depends=
|
depends=
|
||||||
if [ -f "$pkgdir"/usr/bin/haserl-lua$_ver ]; then
|
|
||||||
mkdir -p "$subpkgdir"/usr/bin
|
amove usr/bin/haserl-lua$_ver
|
||||||
mv "$pkgdir"/usr/bin/haserl-lua$_ver "$subpkgdir"/usr/bin/
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _i in $_luaversions; do
|
for _i in $_luaversions; do
|
||||||
|
Loading…
Reference in New Issue
Block a user