Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
eepm
Commits
8a85cd94
Commit
8a85cd94
authored
Mar 12, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add wing (ALT bug 47465)
parent
f10c1542
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
wing.sh
play.d/wing.sh
+42
-0
wing-personal10.sh
repack.d/wing-personal10.sh
+26
-0
No files found.
play.d/wing.sh
0 → 100755
View file @
8a85cd94
#!/bin/sh
PKGNAME
=
wing-personal10
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Wing Python IDE Personal from the official site"
URL
=
"https://wingware.com/"
.
$(
dirname
$0
)
/common.sh
# https://wingware.com/pub/wing-personal/10.0.2.0/wing-personal10_10.0.2-0_amd64.deb
# https://wingware.com/pub/wing-personal/10.0.2.0/wing-personal10-10.0.2-0.x86_64.rpm
BASEURL
=
"https://wingware.com/pub/wing-personal"
if
[
"
$VERSION
"
=
"*"
]
;
then
DIRVERSION
=
"
$(
epm tool eget
--list
--latest
$BASEURL
/10.
*
| xargs
basename
)
"
VERSION
=
"
$(
echo
$DIRVERSION
|
sed
-e
's|\.[0-9]$||'
)
"
else
# TODO: get full version from site
DIRVERSION
=
$VERSION
.0
fi
arch
=
$(
epm print info
--distro-arch
)
pkgtype
=
$(
epm print info
-p
)
case
$pkgtype
in
rpm
)
mask
=
"
$PKGNAME
-
${
VERSION
}
-*.
$arch
.rpm"
;;
deb
)
mask
=
"
${
PKGNAME
}
_
${
VERSION
}
-*_
$arch
.deb"
;;
esac
PKGURL
=
"
$(
epm tool eget
--list
--latest
$BASEURL
/
$DIRVERSION
/
$mask
)
"
||
fatal
"Can't get package URL"
#PKGURL="https://wingware.com/pub/wing-personal/$VERSION/$mask"
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
epm
install
$repack
"
$PKGURL
"
repack.d/wing-personal10.sh
0 → 100755
View file @
8a85cd94
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCTCUR
=
wing-personal
.
$(
dirname
$0
)
/common.sh
move_to_opt
subst
"s|/usr/lib/
$PRODUCT
|
$PRODUCTDIR
|"
$BUILDROOT$PRODUCTDIR
/
$PRODUCTCUR
rm
-v
./usr/bin/
$PRODUCT
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/
$PRODUCTCUR
add_libs_requires
for
size
in
16 32 48 64 128
do
install_file
$PRODUCTDIR
/resources/wing
$size
.png //usr/share/icons/hicolor/
${
size
}
x
${
size
}
/apps/
$PRODUCT
.png
done
install_file
$PRODUCTDIR
/resources/linux/desktop/wing-personal10.desktop /usr/share/applications/
$PRODUCT
.desktop
install_file
$PRODUCTDIR
/resources/linux/desktop/wing-personal10.xml /usr/share/mime/packages/
$PRODUCT
.xml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment