[arch-commits] Commit in liblastfm/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Apr 28 21:57:22 UTC 2019
Date: Sunday, April 28, 2019 @ 21:57:22
Author: arojas
Revision: 352222
Drop qt4 support
Modified:
liblastfm/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++---------------------------
1 file changed, 7 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-28 21:54:25 UTC (rev 352221)
+++ PKGBUILD 2019-04-28 21:57:22 UTC (rev 352222)
@@ -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,39 +25,18 @@
}
build() {
- mkdir build{4,5}
- cd build4
+ mkdir build
+ cd build
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
- cmake ../lastfm-${pkgbase}-* \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_TESTS=OFF
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
}
More information about the arch-commits
mailing list