Skip to content

Commit 243c289

Browse files
committed
New package: Skyscraper-3.18.2
1 parent 5b07526 commit 243c289

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
--- a/skyscraper.pro
2+
+++ b/skyscraper.pro
3+
@@ -29,6 +29,12 @@ isEmpty(PREFIX) {
4+
PREFIX = /usr/local
5+
}
6+
7+
+# System configuration directory
8+
+SYSCONFDIR = $$(SYSCONFDIR)
9+
+isEmpty(SYSCONFDIR) {
10+
+ SYSCONFDIR = $${PREFIX}/etc
11+
+}
12+
+
13+
unix:target.path=$${PREFIX}/bin
14+
unix:target.files=Skyscraper Skyscraper.app/Contents/MacOS/Skyscraper
15+
16+
@@ -39,25 +45,25 @@ unix:supplementary.files=\
17+
supplementary/scraperdata/peas_and_idmap_verify.py \
18+
supplementary/scraperdata/README-Skyscraper-Scripts.md
19+
20+
-unix:config.path=$${PREFIX}/etc/skyscraper
21+
+unix:config.path=$${SYSCONFDIR}/skyscraper
22+
unix:config.files=aliasMap.csv hints.xml mameMap.csv \
23+
mobygames_platforms.json peas.json platforms_idmap.csv \
24+
screenscraper_platforms.json tgdb_developers.json \
25+
tgdb_genres.json tgdb_platforms.json tgdb_publishers.json
26+
27+
-unix:examples.path=$${PREFIX}/etc/skyscraper
28+
+unix:examples.path=$${SYSCONFDIR}/skyscraper
29+
unix:examples.files=config.ini.example README.md artwork.xml \
30+
artwork.xml.example1 artwork.xml.example2 artwork.xml.example3 \
31+
artwork.xml.example4 batocera-artwork.xml docs/ARTWORK.md docs/CACHE.md
32+
33+
-unix:cacheexamples.path=$${PREFIX}/etc/skyscraper/cache
34+
+unix:cacheexamples.path=$${SYSCONFDIR}/skyscraper/cache
35+
unix:cacheexamples.files=cache/priorities.xml.example docs/CACHE.md
36+
37+
-unix:impexamples.path=$${PREFIX}/etc/skyscraper/import
38+
+unix:impexamples.path=$${SYSCONFDIR}/skyscraper/import
39+
unix:impexamples.files=docs/IMPORT.md import/definitions.dat.example1 \
40+
import/definitions.dat.example2
41+
42+
-unix:resexamples.path=$${PREFIX}/etc/skyscraper/resources
43+
+unix:resexamples.path=$${SYSCONFDIR}/skyscraper/resources
44+
unix:resexamples.files=resources/maskexample.png resources/frameexample.png \
45+
resources/boxfront.png resources/boxside.png resources/scanlines1.png \
46+
resources/scanlines2.png
47+
@@ -73,6 +79,7 @@ unix:count(dev, 1) {
48+
}
49+
DEFINES+=VERSION=\\\"$$VERSION\\\"
50+
DEFINES+=PREFIX=\\\"$$PREFIX\\\"
51+
+DEFINES+=SYSCONFDIR=\\\"$$SYSCONFDIR\\\"
52+
53+
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
54+
55+
diff --git a/src/config.cpp b/src/config.cpp
56+
index 4d5abb0..cce5209 100644
57+
--- a/src/config.cpp
58+
+++ b/src/config.cpp
59+
@@ -234,7 +234,7 @@ void Config::setupUserConfig() {
60+
}
61+
}
62+
63+
- QString localEtcPath = QString(PREFIX "/etc/skyscraper/");
64+
+ QString localEtcPath = QString(SYSCONFDIR "/skyscraper/");
65+
if (!QFileInfo::exists(localEtcPath) || isRpInstall) {
66+
// RetroPie or Windows installation type: handled externally
67+
return;
68+
@@ -391,4 +391,4 @@ const char *Config::pathToCStr(QString &in) {
69+
ret = ret.replace(QDir::homePath(), "~");
70+
#endif
71+
return ret.toUtf8().constData();
72+
-}
73+
\ No newline at end of file
74+
+}

srcpkgs/Skyscraper/template

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Template file for 'Skyscraper'
2+
pkgname=Skyscraper
3+
version=3.18.2
4+
revision=1
5+
build_style=qmake
6+
hostmakedepends="pkg-config qt6-tools"
7+
makedepends="qt6-base-devel"
8+
depends="qt6-sql"
9+
short_desc="Powerful and versatile game data scraper written in Qt and C++"
10+
maintainer="Numair Dubas <[email protected]>"
11+
license="GPL-3.0-or-later"
12+
homepage="https://gemba.github.io/skyscraper"
13+
changelog="https://gemba.github.io/skyscraper/CHANGELOG"
14+
distfiles="https://github.com/Gemba/skyscraper/archive/refs/tags/${version}.tar.gz"
15+
checksum=42b8adca6b9b34e350030f4c046ab7527e469ee35c6d8f0c0dc02889b3e410a0
16+
17+
pre_configure() {
18+
export PREFIX=/usr
19+
export SYSCONFDIR=/etc
20+
}
21+
22+
post_install() {
23+
vdoc README.md
24+
vcompletion supplementary/bash-completion/Skyscraper.bash bash
25+
}

0 commit comments

Comments
 (0)