diff --git a/play.d/naps2.sh b/play.d/naps2.sh new file mode 100644 index 0000000000000000000000000000000000000000..8226a6edd51ff8f6253447827371966d898616ba --- /dev/null +++ b/play.d/naps2.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +PKGNAME=naps2 +SUPPORTEDARCHES="x86_64 aarch64" +VERSION="$2" +DESCRIPTION="Scan documents to PDF and more, as simply as possible." +URL="https://github.com/cyanfish/naps2/releases/" + +. $(dirname $0)/common.sh + +arch="$(epm print info -a)" +case "$arch" in + x86_64) + arch=x64 + ;; + aarch64) + arch=arm64 + ;; +esac + +pkgtype=$(epm print info -p) + +if [ "$pkgtype" == "deb" ] || [ "$pkgtype" == "rpm" ] ; then + pkgtype="$pkgtype" +else + pkgtype="deb" +fi + +PKGURL=$(eget --list --latest https://github.com/cyanfish/naps2/releases "$PKGNAME-$VERSION-linux-$arch.$pkgtype") + + +install_pkgurl diff --git a/repack.d/naps2.sh b/repack.d/naps2.sh new file mode 100755 index 0000000000000000000000000000000000000000..88d720613c722b966b77d7068a047aace581dfb8 --- /dev/null +++ b/repack.d/naps2.sh @@ -0,0 +1,16 @@ +#!/bin/sh -x +# It will run with two args: buildroot spec +BUILDROOT="$1" + +SPEC="$2" + +. $(dirname $0)/common.sh + +move_to_opt + +add_bin_link_command +fix_desktop_file + +ignore_lib_requires libmscordaccore.so + +add_libs_requires