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:
|
||||
# - CVE-2021-29133
|
||||
|
||||
_sdir="$srcdir"/$pkgname-$pkgver
|
||||
prepare() {
|
||||
cd "$_sdir"
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i;;
|
||||
esac
|
||||
done
|
||||
default_prepare
|
||||
|
||||
sed -i -e 's/^ /\t/' src/Makefile.am
|
||||
rm -f src/haserl_lualib.inc
|
||||
|
||||
aclocal && autoconf && autoheader && automake --add-missing
|
||||
|
||||
for _i in $_luaversions; do
|
||||
cp -r "$_sdir" "$srcdir"/build-$_i
|
||||
cp -r "$builddir" "$srcdir"/build-$_i
|
||||
done
|
||||
}
|
||||
|
||||
@ -63,14 +58,12 @@ package() {
|
||||
}
|
||||
|
||||
_split() {
|
||||
local d= _ver=$1
|
||||
local _ver=$1
|
||||
pkgdesc="Html And Shell Embedded Report Language with Lua $_ver support"
|
||||
replaces="$pkgname"
|
||||
depends=
|
||||
if [ -f "$pkgdir"/usr/bin/haserl-lua$_ver ]; then
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/haserl-lua$_ver "$subpkgdir"/usr/bin/
|
||||
fi
|
||||
|
||||
amove usr/bin/haserl-lua$_ver
|
||||
}
|
||||
|
||||
for _i in $_luaversions; do
|
||||
|
Loading…
Reference in New Issue
Block a user