Commit c4f8a384 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: fixes for ktalk (ALT bug 43486)

parent e7966c3a
...@@ -192,6 +192,7 @@ EOF ...@@ -192,6 +192,7 @@ EOF
to_remove_pkg_files="$to_remove_pkg_files $HOME/.rpmmacros" to_remove_pkg_files="$to_remove_pkg_files $HOME/.rpmmacros"
} }
__set_version_pkgname() __set_version_pkgname()
{ {
local alpkg="$1" local alpkg="$1"
...@@ -199,6 +200,17 @@ __set_version_pkgname() ...@@ -199,6 +200,17 @@ __set_version_pkgname()
[ -n "$VERSION" ] && PKGNAME="$(echo "$alpkg" | sed -e "s|[-_.]$VERSION.*||")" [ -n "$VERSION" ] && PKGNAME="$(echo "$alpkg" | sed -e "s|[-_.]$VERSION.*||")"
} }
# AppImage version
# hack for ktalk2.4.2 -> ktalk 2.4.2
__set_version_apppkgname()
{
local alpkg="$1"
VERSION="$(echo "$alpkg" | grep -o -P "[-_.a-zA-Z]([0-9])([0-9])*(\.[0-9])*" | head -n1 | sed -e 's|^[-_.a-zA-Z]||')" #"
[ -n "$VERSION" ] && PKGNAME="$(echo "$alpkg" | sed -e "s|$VERSION.*||")"
}
# arg: <package file> # arg: <package file>
# sets: # sets:
# alpkg - package file name without path # alpkg - package file name without path
...@@ -226,7 +238,7 @@ __prepare_source_package() ...@@ -226,7 +238,7 @@ __prepare_source_package()
fi fi
if rhas "$alpkg" "\.AppImage$" ; then if rhas "$alpkg" "\.AppImage$" ; then
__set_version_pkgname $alpkg __set_version_apppkgname $alpkg
[ -n "$VERSION" ] || fatal "Can't get version from $alpkg." [ -n "$VERSION" ] || fatal "Can't get version from $alpkg."
SUBGENERIC='appimage' SUBGENERIC='appimage'
# TODO: move repack archive to erc? # TODO: move repack archive to erc?
......
#!/bin/sh #!/bin/sh
PKGNAME=ktalk2 PKGNAME=ktalk
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
DESCRIPTION="Контур.Толк (ktalk) from the official site" DESCRIPTION="Контур.Толк (ktalk) from the official site"
......
...@@ -34,8 +34,8 @@ remove_dir $(find $BUILDROOT -type d -name "*catalina*" | sed -e "s|$BUILDROOT|| ...@@ -34,8 +34,8 @@ remove_dir $(find $BUILDROOT -type d -name "*catalina*" | sed -e "s|$BUILDROOT||
cd - >/dev/null cd - >/dev/null
add_bin_exec_command $PRODUCT $PRODUCTDIR/AppRun add_bin_exec_command $PRODUCT $PRODUCTDIR/AppRun
# Strange AppRun script uses args as path, so override apth detection # Strange AppRun script uses args as path, so override path detection
subst "1iexport APPDIR=$PRODUCTDIR" $BUILDROOT/usr/bin/$PRODUCT subst "2iexport APPDIR=$PRODUCTDIR" $BUILDROOT/usr/bin/$PRODUCT
subst '1iAutoProv:no' $SPEC subst '1iAutoProv:no' $SPEC
subst '1iAutoReq:yes,nopython,nomono,nomonolib' $SPEC subst '1iAutoReq:yes,nopython,nomono,nomonolib' $SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment