portproton.sh 849 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=portproton
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION='PortProton (from the repository if the package is there, or from the official site)'
7 8 9

. $(dirname $0)/common.sh

10
res=0
11
if ! epm install portproton ; then
12
    PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases portproton_${VERSION}amd64.deb)"
13 14 15 16
    epm install $PKGURL
    res=$?
fi

17 18 19 20 21

# TODO: get from  grep '^###Scripts version ' PortWINE/data_from_portwine/changelog_eng | head -n1
###Scripts version 2172###
#VERSION="$(epm tool eget -O- https://api.github.com/repos/Castro-Fidel/PortWINE/commits/HEAD | grep '"message": "Scripts version' | sed -e 's|.*Scripts version ||' -e 's|".*||' )"
#epm pack --install $PKGNAME https://github.com/Castro-Fidel/PortWINE/archive/refs/heads/master.tar.gz $VERSION
22 23 24 25

epm play i586-fix

exit $res