forked from flathub/com.xnview.XnViewMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXnViewMP.yaml
21 lines (21 loc) · 854 Bytes
/
XnViewMP.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: XnViewMP
buildsystem: simple
sources:
- type: archive
url: https://download.xnview.com/old_versions/XnView_MP/XnView_MP-1.5.2-linux-x64.tgz
sha256: 3816b6a86223e1a9bbf93ab6c61526ddcb2b8b3ff662408f2b88647e5ba7a9a8
strip-components: 0
# Icons, desktop file and metainfo
- type: dir
path: data
build-commands:
- |
find "XnView" -xtype f -executable \( -iname '*.jpg' -o -iname '*.png' -o -iname '*.txt' -o -iname '*.zip' \) -exec chmod -x {} +;
cp -a "XnView" "${FLATPAK_DEST}/";
mkdir "${FLATPAK_DEST}/bin";
ln -s "${FLATPAK_DEST}/XnView/xnview.sh" "${FLATPAK_DEST}/bin/xnview";
- ln -s /usr/lib/x86_64-linux-gnu/libbz2.so.1.0.8 "${FLATPAK_DEST}/XnView/lib/libbz2.so.1.0";
- |
for file in $(find share -type f -name *.*); do
install -p -D -m 0644 "${file}" "${FLATPAK_DEST}/${file}";
done;