Commit 6f83b908 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add epm ei erc to assure erc

parent eec3a11c
...@@ -53,7 +53,7 @@ check_pkg_integrity() ...@@ -53,7 +53,7 @@ check_pkg_integrity()
true true
;; ;;
*) *)
assure_exists erc assure_exists erc || epm ei erc || fatal "erc is not available. can't check the package"
docmd erc test "$PKG" && return docmd erc test "$PKG" && return
;; ;;
esac esac
......
...@@ -245,7 +245,7 @@ __prepare_source_package() ...@@ -245,7 +245,7 @@ __prepare_source_package()
[ -x "$alpkg" ] || docmd chmod u+x $verbose "$alpkg" [ -x "$alpkg" ] || docmd chmod u+x $verbose "$alpkg"
./$alpkg --appimage-extract || fatal ./$alpkg --appimage-extract || fatal
alpkg=$PKGNAME-$VERSION.tar alpkg=$PKGNAME-$VERSION.tar
assure_exists erc || fatal assure_exists erc || epm ei erc || fatal
# make a tar for alien # make a tar for alien
a= erc a $alpkg squashfs-root a= erc a $alpkg squashfs-root
return return
...@@ -254,7 +254,7 @@ __prepare_source_package() ...@@ -254,7 +254,7 @@ __prepare_source_package()
__set_version_pkgname $alpkg __set_version_pkgname $alpkg
if [ -n "$VERSION" ] ; then if [ -n "$VERSION" ] ; then
# TODO: don't use erc for detect type? then we potentially can skip install it # TODO: don't use erc for detect type? then we potentially can skip install it
assure_exists erc || fatal assure_exists erc || epm ei erc || fatal
pkgtype="$(a= erc type $alpkg)" pkgtype="$(a= erc type $alpkg)"
local newalpkg local newalpkg
newalpkg=$PKGNAME-$VERSION.$pkgtype newalpkg=$PKGNAME-$VERSION.$pkgtype
...@@ -265,7 +265,7 @@ __prepare_source_package() ...@@ -265,7 +265,7 @@ __prepare_source_package()
else else
newalpkg=$PKGNAME-$VERSION.tar newalpkg=$PKGNAME-$VERSION.tar
#newalpkg=$(basename $alpkg .$pkgtype).tar #newalpkg=$(basename $alpkg .$pkgtype).tar
assure_exists erc || fatal assure_exists erc || epm ei erc || fatal
a= erc repack $alpkg $newalpkg || fatal a= erc repack $alpkg $newalpkg || fatal
fi fi
if [ "$alpkg" != "$newalpkg" ] ; then if [ "$alpkg" != "$newalpkg" ] ; then
......
...@@ -9,8 +9,7 @@ DESCRIPTION="KYOCERA Printing Package (Linux Universal Driver)" ...@@ -9,8 +9,7 @@ DESCRIPTION="KYOCERA Printing Package (Linux Universal Driver)"
URL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip" URL="https://www.kyoceradocumentsolutions.eu/content/download-center/eu/drivers/all/Linux_Universal_Driver_zip.download.zip"
# FIXME: ALT Linux only epm assure erc || epm ei erc || fatal
epm assure erc || fatal
PKGDIR="$(mktemp -d)" PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT trap "rm -fr $PKGDIR" EXIT
......
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