Skip to content
Snippets Groups Projects
Commit 8a27a4b4 authored by Kevin Daudt's avatar Kevin Daudt :computer: Committed by Natanael Copa
Browse files

main/haserl: modernize

- Use default_prepare instead of custom patch logic
- Use builddir
- Use amove
- Remove unused variable in _split
parent d25d41ac
No related branches found
No related tags found
1 merge request!62151main/haserl: modernize
Pipeline #218854 skipped
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment