@@ -32,24 +32,30 @@ modules:
32
32
33
33
- name : scantailor-advanced
34
34
sources :
35
- - type : archive
36
- url : https://github.com/4lex4/scantailor-advanced/archive/refs/tags/2019.8.16_EA.tar.gz
37
- sha256 : 7ee3aaffa9a234a3171d3d0d75bc34a6acc7e78f85f5a70d6cf7ae481c8d1a48
35
+ - type : git
36
+ url : https://github.com/4lex4/scantailor-advanced.git
37
+ tag : 2019.8.16_EA
38
+ commit : c5eba3933f7e47fde753a8d51cd6ee2ff3d9954e
38
39
x-checker-data :
39
40
type : json
40
41
url : https://api.github.com/repos/4lex4/scantailor-advanced/releases
41
- version-query : ' [.[] | select(.draft == false and .prerelease == true)][0].tag_name'
42
- url-query : ' "https://github.com/4lex4/scantailor-advanced/archive/refs/tags/" + $version + ".tar.gz"'
42
+ tag-query : ' [.[] | select(.draft == false and .prerelease == true)][0].tag_name'
43
43
- type : file
44
- path : com.github._4lex4.ScanTailor-Advanced.metainfo.xml
44
+ path : com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in
45
45
- type : patch
46
46
path : scantailor-qt5.15.patch
47
47
buildsystem : cmake-ninja
48
48
builddir : true
49
49
config-opts :
50
50
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
51
51
post-install :
52
- - install -Dm0644 -t /app/share/metainfo ../com.github._4lex4.ScanTailor-Advanced.metainfo.xml
52
+ - |
53
+ # Set version and release data in our custom Metainfo and install it
54
+ set -e
55
+ version="$(git describe --tags --exact-match)"
56
+ date="$(git log -1 --date=short --format=%cd)"
57
+ sed -e "s/{RELEASE_VERSION}/${version}/g" -e "s/{RELEASE_DATE}/${date}/g" ../com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in >com.github._4lex4.ScanTailor-Advanced.metainfo.xml
58
+ install -Dm0644 -t /app/share/metainfo com.github._4lex4.ScanTailor-Advanced.metainfo.xml
53
59
- mv /app/share/mime/packages/scantailor-project.xml /app/share/mime/packages/com.github._4lex4.ScanTailor-Advanced.xml
54
60
- |
55
61
for res in 16 32 48 64 128 256 512; do
0 commit comments