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
cd41eba6
Commit
cd41eba6
authored
Apr 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add pencil support
parent
f691b165
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
pencil.sh
play.d/pencil.sh
+37
-0
Pencil.sh
repack.d/Pencil.sh
+21
-0
No files found.
play.d/pencil.sh
0 → 100755
View file @
cd41eba6
#!/bin/sh
PKGNAME
=
Pencil
SUPPORTEDARCHES
=
"x86_64 x86"
DESCRIPTION
=
"Pencil from the official site"
URL
=
"https://pencil.evolus.vn/"
.
$(
dirname
$0
)
/common.sh
is_repacked_package pencil
||
exit
0
arch
=
$(
epm print info
--distro-arch
)
case
$arch
in
x86_64|amd64
)
arch
=
$arch
;;
i686|i386
)
arch
=
$arch
;;
i586
)
arch
=
i686
;;
*
)
fatal
"Unsupported arch
$arch
for
$(
epm print info
-d
)
"
esac
# we have workaround for their postinstall script, so always repack rpm package
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
# current links:
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil-3.1.1.ga.x86_64.rpm
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil-3.1.1.ga.i686.rpm
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_amd64.deb
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_i386.deb
PKGMASK
=
"
$(
epm print constructname
$PKGNAME
"*.ga"
$arch
)
"
PKGURL
=
"
$(
epm tool eget
--list
--latest
https://pencil.evolus.vn/Downloads.html
$PKGMASK
)
"
||
fatal
"Can't get package URL"
epm
$repack
install
"
$PKGURL
"
repack.d/Pencil.sh
0 → 100755
View file @
cd41eba6
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
pencil
PRODUCTDIR
=
/opt/Pencil
PRODUCTCUR
=
Pencil
.
$(
dirname
$0
)
/common-chromium-browser.sh
add_bin_link_command
add_bin_link_command
$PRODUCTCUR
$PRODUCT
install_deps
fix_chrome_sandbox
fix_desktop_file
subst
'1iConflicts: pencil'
$SPEC
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