aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromni <omni+alpine@hack.org>2021-04-02 19:55:38 +0000
committerAndy Postnikov <apostnikov@gmail.com>2021-04-04 21:25:13 +0000
commitbd719c71f733a5e0679e3430213e63be0dc1ebcf (patch)
treea191c8492d0f0d5b76fd7510395345a9f2e12679
parent93a081e00ca49ced1a352a41d7bd5369f9e5a30b (diff)
downloadaports-bd719c71f733a5e0679e3430213e63be0dc1ebcf.tar.gz
aports-bd719c71f733a5e0679e3430213e63be0dc1ebcf.tar.bz2
aports-bd719c71f733a5e0679e3430213e63be0dc1ebcf.tar.xz
testing/kristall: upgrade to 0.3_git20210403
- set kristall version through env var export and patch - add doc package with man page - add make dependency
-rw-r--r--testing/kristall/APKBUILD17
-rw-r--r--testing/kristall/set-kristall-version.patch11
2 files changed, 23 insertions, 5 deletions
diff --git a/testing/kristall/APKBUILD b/testing/kristall/APKBUILD
index 301c6a191d..78a7881cc6 100644
--- a/testing/kristall/APKBUILD
+++ b/testing/kristall/APKBUILD
@@ -1,7 +1,8 @@
# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=kristall
-pkgver=0.3
+pkgver=0.3_git20210403
+_commit=8d0eb55033a46f5b278224d173499d2f3d42eadf
pkgrel=0
pkgdesc="Qt small-internet client for gemini, gopher, finger and http(s)"
url="https://kristall.random-projects.net/"
@@ -9,16 +10,22 @@ url="https://kristall.random-projects.net/"
arch="all !armhf"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
-makedepends="qtchooser qt5-qtbase-dev qt5-qtsvg-dev qt5-qtmultimedia-dev"
+makedepends="qtchooser qt5-qtbase-dev qt5-qtsvg-dev qt5-qtmultimedia-dev
+ qt5-qttools-dev"
options="!check" # no test suite
-source="$pkgname-$pkgver.tar.gz::https://github.com/MasterQ32/kristall/archive/V$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/MasterQ32/kristall/archive/$_commit.tar.gz
+ set-kristall-version.patch"
+builddir="$srcdir/$pkgname-$_commit"
build() {
+ export pkgver # for set-kristall-version.patch
make
}
package() {
- make INSTALL="install -D" PREFIX="$pkgdir"/usr install
+ make install PREFIX="$pkgdir"/usr
}
-sha512sums="21c102e25235f3a7c1a4128d84215a2444603b4b9bc680e94100148d143dc50744bb86450c22b8848453c5e183ae4708a1594240486951614d4e4af2706cd2e8 kristall-0.3.tar.gz"
+sha512sums="84ce5c56bf6619f913521959d9a0ea9b403a1a34a69f81f8cc1426740a385827d88908a63ba7b101560e1db3d4dc83f91b195996e2e9dd392448f90958391ce7 kristall-0.3_git20210403.tar.gz
+4b7cd03af976a04ae2ec03db1f07a4b5a8842306a2a2620b5d328d64cb57f53b19c3909bc757fc8008ac93819f8fae3eadf1955128835a61170c7cda83d96695 set-kristall-version.patch"
diff --git a/testing/kristall/set-kristall-version.patch b/testing/kristall/set-kristall-version.patch
new file mode 100644
index 0000000000..4311ac4f50
--- /dev/null
+++ b/testing/kristall/set-kristall-version.patch
@@ -0,0 +1,11 @@
+--- a/src/kristall.pro
++++ b/src/kristall.pro
+@@ -9,7 +9,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT +=
+ # deprecated API in order to know how to port your code away from it.
+ DEFINES += QT_DEPRECATED_WARNINGS
+
+-DEFINES += KRISTALL_VERSION="\"$(shell cd $$PWD; git describe --tags)\""
++DEFINES += KRISTALL_VERSION="\"$$(pkgver)\""
+
+ # You can also make your code fail to compile if it uses deprecated APIs.
+ # In order to do so, uncomment the following line.