Commit 113b40e7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add aimp

parent 1ebac8a0
#!/bin/sh
PKGNAME=aimp
SUPPORTEDARCHES="x86_64"
DESCRIPTION="AIMP (Wine based audio player) from the official site"
. $(dirname $0)/common.sh
pkgtype="$($DISTRVENDOR -p)"
if ! which wine ; then
epm play wine || fatal
fi
repack=''
[ "$($DISTRVENDOR -s)" = "alt" ] && repack='--repack'
case $pkgtype in
deb)
epm install "https://www.aimp.ru/?do=download.file&id=26"
;;
rpm)
epm $repack install "https://www.aimp.ru/?do=download.file&id=32"
;;
*)
fatal "Unsupported $pkgtype"
;;
esac
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=aimp
PRODUCTDIR=/opt/$PRODUCT
. $(dirname $0)/common.sh
subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
subst '1iRequires:/usr/bin/wine' $SPEC
subst '1iRequires:/bin/sh' $SPEC
add_bin_link_command $PRODUCT $PRODUCTDIR/aimp.bash
subst "s|/usr/bin/sh|/bin/sh|" $BUILDROOT$PRODUCTDIR/aimp.bash
mkdir -p $BUILDROOT/usr/share/applications/
cp $BUILDROOT/opt/aimp/aimp.desktop $BUILDROOT/usr/share/applications/aimp.desktop
pack_file /usr/share/applications/aimp.desktop
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