summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD68
2 files changed, 51 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af5837aecb9..20aeda5d3e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
pkgbase = qt5-svg-git
- pkgdesc = A cross-platform application and UI framework (QtSvg)
- pkgver = v5.5.0.1.g93d77ed
+ pkgdesc = Classes for displaying the contents of SVG files
+ pkgver = 5.12.1.r11.g2ae3c52
pkgrel = 1
- url = https://qt-project.org/
+ url = https://www.qt.io/
arch = i686
arch = x86_64
- license = GPL3
+ license = GPL
license = LGPL
+ license = FDL
+ license = custom
makedepends = git
- depends = qt5-base-git
+ depends = qt5-base
provides = qt5-svg
conflicts = qt5-svg
- source = qt5-svg::git://code.qt.io/qt/qtsvg.git#branch=5.5
+ source = git+https://code.qt.io/qt/qtsvg.git#branch=dev
sha256sums = SKIP
pkgname = qt5-svg-git
diff --git a/PKGBUILD b/PKGBUILD
index 857d9f4b6d3..299a39d8c21 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,56 @@
-# Maintainer: Riley Trautman <asonix.dev@gmail.com>
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+# Previous maintainer: Riley Trautman <asonix.dev@gmail.com>
# Contributor: Jerome Leclanche <jerome@leclan.ch>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
-_pkgname=qt5-svg
-pkgname=$_pkgname-git
-pkgver=git
+pkgname=qt5-svg-git
+pkgver=5.12.1.r11.g2ae3c52
pkgrel=1
-pkgdesc="A cross-platform application and UI framework (QtSvg)"
-arch=("i686" "x86_64")
-url="https://qt-project.org/"
-license=("GPL3" "LGPL")
-depends=("qt5-base-git")
-makedepends=("git")
-provides=("$_pkgname")
-conflicts=("$_pkgname")
-source=("$_pkgname::git://code.qt.io/qt/qtsvg.git#branch=dev")
-sha256sums=("SKIP")
+pkgdesc="Classes for displaying the contents of SVG files"
+arch=('i686' 'x86_64')
+url="https://www.qt.io/"
+license=('GPL' 'LGPL' 'FDL' 'custom')
+depends=('qt5-base')
+makedepends=('git')
+provides=('qt5-svg')
+conflicts=('qt5-svg')
+source=("git+https://code.qt.io/qt/qtsvg.git#branch=dev")
+sha256sums=('SKIP')
+
+
+prepare() {
+ cd "$srcdir"
+
+ mkdir -p "_build"
+}
pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --always | sed "s/-/./g"
+ cd "qtsvg"
+
+ _tag=$(git tag -l --sort -v:refname | sed -n '1,1{s/v//p}')
+ _rev=$(git rev-list --count v$_tag..HEAD)
+ _hash=$(git rev-parse --short HEAD)
+ printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
}
-prepare() {
- cd "$srcdir/$_pkgname"
- mkdir -p build
- cd build
- qmake ..
- make
+build() {
+ cd "_build"
+
+ qmake ../qtsvg
+ make
}
package() {
- cd "$srcdir/$_pkgname"
- cd build
- make INSTALL_ROOT="$pkgdir" install
+ cd "_build"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+ find "$pkgdir/usr/lib" -type f -name '*.prl' \
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+ cd "$srcdir/qtsvg"
+ install -Dm644 "LICENSE.FDL" "$pkgdir/usr/share/licenses/qt5-svg/LICENSE.FDL"
+ install -Dm644 "LICENSE.GPL3-EXCEPT" "$pkgdir/usr/share/licenses/qt5-svg/LICENSE.GPL3-EXCEPT"
}