-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.ktgw0316.LightZone.json
139 lines (139 loc) · 5.32 KB
/
io.github.ktgw0316.LightZone.json
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"id": "io.github.ktgw0316.LightZone",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.openjdk17"
],
"rename-desktop-file": "lightzone.desktop",
"rename-icon": "lightzone",
"finish-args": [
"--share=ipc",
"--socket=x11",
"--device=dri",
"--filesystem=xdg-pictures",
"--persist=.java",
"--persist=.lzncache",
"--env=PATH=/app/jre/bin:/app/bin:/usr/bin"
],
"command": "lightzone",
"modules": [
{
"name": "openjdk",
"buildsystem": "simple",
"build-commands": [
"/usr/lib/sdk/openjdk17/install.sh"
]
},
{
"name": "lensfun",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DCMAKE_INSTALL_LIBDIR=/app/lib",
"-DBUILD_FOR_SSE=0",
"-DBUILD_FOR_SSE2=0"
],
"build-options": {
"arch": {
"x86_64": {
"config-opts": [
"-DBUILD_FOR_SSE=1",
"-DBUILD_FOR_SSE2=1"
]
}
}
},
"cleanup": [
"/lib/python3.*"
],
"post-install": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} lxml --ignore-installed",
"python3 lensfun_convert_db.py $PWD lensfun-git/data/db",
"rm -rf /app/share/lensfun/version_1/*",
"tar xvf db/version_1.tar -C /app/share/lensfun/version_1"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/lensfun/lensfun/archive/refs/tags/v0.3.4.tar.gz",
"sha256": "dafb39c08ef24a0e2abd00d05d7341b1bf1f0c38bfcd5a4c69cf5f0ecb6db112"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/72/14/60bf9ba4b5c6d001af3b93be17a442deea8b1ce0eab2911de839cb0dfd3f/lxml-5.0.2.tar.gz",
"sha256": "6399703c40ba53e2c3b72fdb56cb908d2b83c08082ecf17de839b27e68d1e598"
},
{
"type": "file",
"path": "lensfun_convert_db.py"
},
{
"type": "git",
/* used only for database*/
"dest": "lensfun-git",
"url": "https://github.com/lensfun/lensfun.git",
"commit": "766ef7b02c72686deec3d766f931b5925122e9c3"
}
]
},
{
"name": "rsync",
"no-autogen": true,
"cleanup": [
"*"
],
"sources": [
{
"type": "archive",
"url": "https://download.samba.org/pub/rsync/src/rsync-3.3.0.tar.gz",
"sha256": "7399e9a6708c32d678a72a63219e96f23be0be2336e50fd1348498d07041df90"
}
]
},
{
"name": "lightzone",
"buildsystem": "simple",
"build-options": {
"prepend-path": "/usr/lib/sdk/openjdk17/bin",
"env": {
"JAVA_HOME": "/usr/lib/sdk/openjdk17/jvm/openjdk-17"
}
},
"build-commands": [
"ant -f linux/build.xml -Dno-ivy=true -Dno-submodule=true",
"install -Dm755 linux/products/lightzone -t $FLATPAK_DEST/bin",
"install -d $FLATPAK_DEST/share/java/lightzone",
"install -Dm755 lightcrafts/products/*.so -t $FLATPAK_DEST/lib/lightzone",
"install -Dm755 lightcrafts/products/dcraw_lz lightcrafts/products/LightZone-forkd -t $FLATPAK_DEST/share/java/lightzone",
"cp -pH linux/products/*.jar $FLATPAK_DEST/share/java/lightzone",
"install -Dm644 linux/products/lightzone.desktop -t $FLATPAK_DEST/share/applications",
"cp -pHR linux/icons $FLATPAK_DEST/share/",
"install -Dm644 io.github.ktgw0316.LightZone.metainfo.xml -t $FLATPAK_DEST/share/metainfo"
],
"sources": [
{
"type": "git",
"url": "https://github.com/ktgw0316/LightZone.git",
"tag": "4.2.5",
"commit": "2aadc9b96c8e5be3e0546cbb18f90e4b141a542d"
},
{
"type": "patch",
"path": "patches/lz-build.patch"
},
{
"type": "file",
"url": "https://repo.maven.apache.org/maven2/javax/help/javahelp/2.0.05/javahelp-2.0.05.jar",
"sha256": "fcf4922d38ff85184f1d2328317bb60826e14da948abd606ee3d5b8c6a70debd",
"dest": "lightcrafts/dependencies"
},
{
"type": "file",
"path": "io.github.ktgw0316.LightZone.metainfo.xml"
}
]
}
]
}