forked from flathub/com.xnview.XnViewMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XnViewMP.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.8.3-linux-x64.tgz
sha256: 1fa93a1d299051cc9004a574a49a30bd449e81ea37ae8c4bff1d676325657f7e
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;