-
Notifications
You must be signed in to change notification settings - Fork 13
/
org.pdfsam.pdfsam.yaml
57 lines (57 loc) · 1.79 KB
/
org.pdfsam.pdfsam.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
app-id: org.pdfsam.pdfsam
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk
command: pdfsam
rename-desktop-file: pdfsam.desktop
rename-icon: pdfsam
cleanup:
- /include
- /lib/pkgconfig
- '*.a'
- '*.la'
finish-args:
- --device=dri
- --env=PATH=/app/bin:/app/jre/bin:/usr/bin
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --share=ipc
- --socket=x11
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk/install.sh
- name: pdfsam
buildsystem: simple
build-commands:
- install -Dm755 apply_extra /app/bin/apply_extra
- install -Dm755 pdfsam /app/bin/pdfsam
- install -Dm644 pdfsam.desktop /app/share/applications/pdfsam.desktop
# - bsdtar -xf pdfsam.jar --strip=2 images/basic
- |
for s in 16 24 32 48 64 96 128 256 512; do
install -Dm644 ${s}x${s}.png /app/share/icons/hicolor/${s}x${s}/apps/pdfsam.png
done
sources:
- type: script
dest-filename: apply_extra
commands:
- bsdtar -xf pdfsam-linux.zip --strip=1
- rm -f pdfsam-linux.zip
- rm -rf bin doc runtime LICENSE.txt
- mv pdfsam-basic-*.jar pdfsam.jar
- type: dir
path: resources
- type: extra-data
filename: pdfsam-linux.zip
url: https://github.com/torakiki/pdfsam/releases/download/v4.2.12/pdfsam-4.2.12-linux.tar.gz
sha256: 870a635e7b26dae8511f28b21e62f61acc868a582ace3971eafa25da185d75f2
size: 65885108
x-checker-data:
type: anitya
project-id: 12290
stable-only: true
url-template: https://github.com/torakiki/pdfsam/releases/download/v$version/pdfsam-$version-linux.tar.gz