git » liblastfm.git » commit 6674624

Drop qt4 support

author Antonio Rojas
2019-04-28 21:57:22 UTC
committer Antonio Rojas
2019-04-28 21:57:22 UTC
parent 8f4ea4d925b41d65de3fd8ddb95c7d5dc8876d69

Drop qt4 support

PKGBUILD +7 -27

diff --git a/PKGBUILD b/PKGBUILD
index cad1b6c..28c533a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,15 @@
 # Contributor: XazZ <xazz.xazz [AT] googlemail.com>
 
 pkgbase=liblastfm
-pkgname=(liblastfm-qt4 liblastfm-qt5)
+pkgname=(liblastfm-qt5)
 pkgver=1.0.9
-pkgrel=3
+pkgrel=4
 pkgdesc="A Qt C++ library for the Last.fm webservices"
 arch=('x86_64')
 url='https://github.com/lastfm/liblastfm/'
 license=('GPL3')
-makedepends=('cmake' 'qt4' 'qt5-base' 'fftw' 'libsamplerate')
+depends=('qt5-base' 'fftw' 'libsamplerate')
+makedepends=('cmake')
 source=(${pkgbase}-${pkgver}.tar.gz::"https://github.com/lastfm/${pkgbase}/tarball/${pkgver}" liblastfm-qt5.11.patch
         liblastfm-include-suffix.patch::"https://github.com/lastfm/liblastfm/commit/480e2ec6.patch")
 sha1sums=('cd8c6f160529dbf9e0566973a8f37130c83a78c0'
@@ -24,17 +25,8 @@ prepare() {
 }
 
 build() {
-  mkdir build{4,5}
-  cd build4
-  cmake ../lastfm-${pkgbase}-* \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
-    -DBUILD_TESTS=OFF \
-    -DBUILD_WITH_QT4=ON
-  make
-
-  cd ../build5
+  mkdir build
+  cd build
   cmake ../lastfm-${pkgbase}-* \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
@@ -43,20 +35,8 @@ build() {
   make
 }
 
-package_liblastfm-qt4() {
-  depends=('qt4' 'fftw' 'libsamplerate')
-  conflicts=('liblastfm')
-  provides=('liblastfm')
-  replaces=('liblastfm')  
-
-  cd build4
-  make DESTDIR="${pkgdir}" install
-}
-
 package_liblastfm-qt5() {
-  depends=('qt5-base' 'fftw' 'libsamplerate')
-
-  cd build5
+  cd build
   make DESTDIR="${pkgdir}" install
 }