# SliTaz package receipt. PACKAGE="mozplugger" VERSION="2.1.6" CATEGORY="multimedia" SHORT_DESC="Generic Mozilla plugin." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" WEB_SITE="https://github.com/unix-junkie/mozplugger" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="xorg-libX11" # What is the latest version available today? current_version() { wget -O - https://github.com/unix-junkie/mozplugger/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --sysconfdir=/etc && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/mozilla/plugins mkdir -p $fs/etc mkdir -p $fs/usr/bin cp -a $src/mozplugger.so $fs/usr/lib/mozilla/plugins cp -a $src/mozpluggerrc $fs/etc cp -a $src/mozplugger-helper $fs/usr/bin cp -a $src/mozplugger-controller $fs/usr/bin cp -a $src/mozplugger-linker $fs/usr/bin }