Commit e32deb22 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add manuskript

parent 2c8cb36d
#!/bin/sh
PKGNAME=manuskript
SUPPORTEDARCHES=""
VERSION="$2"
DESCRIPTION="A open-source tool for writers for Linux from the official site"
URL="http://www.theologeek.ch/manuskript"
. $(dirname $0)/common.sh
case $(epm print info -p) in
rpm)
file="$PKGNAME-$VERSION-1.noarch.rpm"
;;
*)
file="$PKGNAME-$VERSION-1.deb"
;;
esac
if [ "$VERSION" = "*" ] ; then
PKGURL="$(get_github_url "https://github.com/olivierkes/manuskript" "$file")"
else
PKGURL="https://github.com/olivierkes/manuskript/releases/download/$version/$file"
fi
install_pkgurl
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=manuskript
. $(dirname $0)/common.sh
move_to_opt
subst "s|/usr/share/manuskript/|$PRODUCTDIR/|" usr/bin/manuskript
fix_desktop_file /usr/bin/manuskript
fix_desktop_file Icon=/usr/share/manuskript/icons/Manuskript/icon-512px.png $PRODUCT
install_file /usr/share/manuskript/icons/Manuskript/icon-512px.png /usr/share/icons/hicolor/256x256/apps/$PRODUCT.png
add_unirequires python3(enchant) python3(lxml) python3(markdown)
add_unirequires python3(qt5) python3(qt5-webkit)
add_unirequires libQt5Svg.so.5
add_libs_requires
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