2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: HPs hplip yazıcı ikili sürücüler
|
2017-06-10 17:29:53 +02:00
|
|
|
|
# URL: http://hplipopensource.com/node/309
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: hplip
|
2017-06-10 17:29:53 +02:00
|
|
|
|
|
|
|
|
|
name=hplip-plugin
|
|
|
|
|
version=3.17.6
|
|
|
|
|
release=1
|
|
|
|
|
source=(http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$version-plugin.run)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-06-10 17:29:53 +02:00
|
|
|
|
sh "hplip-$version-plugin.run" --target "$SRC/hplip-$version-plugin" --noexec
|
|
|
|
|
cd "$SRC/hplip-$version-plugin"
|
|
|
|
|
_arch='x86_64'
|
|
|
|
|
|
|
|
|
|
install -d "$PKG/usr/share/hplip/data/firmware"
|
|
|
|
|
install -d "$PKG/usr/share/hplip/fax/plugins"
|
|
|
|
|
install -d "$PKG/usr/share/hplip/prnt/plugins"
|
|
|
|
|
install -d "$PKG/usr/share/hplip/scan/plugins"
|
|
|
|
|
install -d "$PKG/usr/share/licenses/hplip-plugin"
|
|
|
|
|
install -d "$PKG/var/lib/hp"
|
|
|
|
|
|
|
|
|
|
install -m644 plugin.spec "$PKG/usr/share/hplip/"
|
|
|
|
|
install -m644 hp_laserjet_*.fw.gz "$PKG/usr/share/hplip/data/firmware/"
|
|
|
|
|
install -m755 fax_marvell-"$_arch".so "$PKG/usr/share/hplip/fax/plugins/"
|
|
|
|
|
install -m755 hbpl1-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/"
|
|
|
|
|
install -m755 lj-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/"
|
|
|
|
|
install -m755 bb_*-"$_arch".so "$PKG/usr/share/hplip/scan/plugins/"
|
|
|
|
|
install -m644 license.txt "$PKG/usr/share/licenses/hplip-plugin/"
|
|
|
|
|
|
|
|
|
|
# Create hplip.state used by hplip-tools
|
|
|
|
|
|
|
|
|
|
cat << EOF > hplip.state
|
|
|
|
|
[plugin]
|
|
|
|
|
installed = 1
|
|
|
|
|
eula = 1
|
|
|
|
|
version = $version
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
install -m644 hplip.state "$PKG/var/lib/hp"
|
|
|
|
|
# Create symlinks
|
|
|
|
|
find "$PKG/usr/share/hplip" -type f -name "*.so" | while read f; do
|
|
|
|
|
lib_dir="${f%/*}"
|
|
|
|
|
lib_name="${f##*/}"
|
|
|
|
|
ln -vsf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
}
|