Commit 2ff5bd0a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add sane-panakvs (Panasonic Scanner Driver for Linux)

parent 782569ae
#!/bin/sh
TAR="$1"
#VERSION="$2"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
CURDIR="$(pwd)"
PKGDIR="$(mktemp -d)"
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
erc unpack $TAR && cd libsane* || fatal
mkdir -vp usr/share/doc/$PRODUCT
mv -v Version.html usr/share/doc/$PRODUCT
rm -v install-driver
#
mkdir -vp etc
mv -v config etc/sane.d
#
mkdir -vp etc/sane.d/dlls.d
echo "panakvs" >etc/sane.d/dlls.d/panakvs
sanelib=usr/lib64/sane
# fack hack
[ -d /usr/lib/x86_64-linux-gnu ] && sanelib=usr/lib/x86_64-linux-gnu/sane
mkdir -vp $sanelib
cp -v objects/scanlld.so $sanelib
for i in objects/libsane-* ; do
cp -v $i $sanelib/
s=$(basename $i | sed -e 's|\(libsane.*\.so\).*|\1|') #'
ln -sv $(basename $i) $sanelib/$s.1
ln -sv $(basename $i) $sanelib/$s
done
PKGNAME="$(basename $TAR | sed -e "s|libsane-panakvs|$PRODUCT|")"
erc pack $CURDIR/$PKGNAME.tar etc usr
return_tar $PKGNAME.tar
#!/bin/sh
DESCRIPTION="Panasonic Scanner Driver for Linux from the official site"
PKGNAME=sane-panakvs
SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
VERSION=1.7.0
arch="$(epm print info -a)"
case "$arch" in
x86_64)
file="libsane-panakvs-$VERSION-x86_64.tar.gz"
;;
# we don't support old arches
# x86)
# file="libsane-panakvs-$VERSION-i686.tar.gz"
# ;;
*)
fatal "$arch arch is not supported"
;;
esac
PKGURL="https://www.psn-web.net/cs-im/Japan/Scanner/cojp/data_cmns/linux/$file"
epm pack --install $PKGNAME "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Graphics|" $SPEC
subst "s|^License:.*$|License: Proprietary|" $SPEC
subst "s|^URL:.*|URL: https://github.com/zerotier/ZeroTierOne|" $SPEC
subst "s|^Summary:.*|Summary: Panasonic Scanner Driver for Linux|" $SPEC
#subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $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