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) · 843 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/XnViewMP-1.3.0-linux-x64.tgz
sha256: 713fcb92e95eca179e02c62b9416566821a0b6e81870ad1d49c379ebf900406e
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;