author | Andrea Scarpino
<andrea@archlinux.org> 2013-01-25 14:23:30 UTC |
committer | Andrea Scarpino
<andrea@archlinux.org> 2013-01-25 14:23:30 UTC |
parent | c2a43dcf1c7a95280e16a3157a3d5061bac693b4 |
PKGBUILD | +19 | -19 |
no-ftools.patch | +0 | -36 |
diff --git a/PKGBUILD b/PKGBUILD index 3e71fb0..30cdd56 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,31 +1,31 @@ -# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Maintainer: +# Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: XazZ <xazz.xazz [AT] googlemail.com> pkgname=liblastfm -pkgver=0.3.3 -pkgrel=3 -pkgdesc="A collection of libraries to help you integrate Last.fm services into your rich desktop software" +pkgver=1.0.6 +pkgrel=1 +pkgdesc="A Qt C++ library for the Last.fm webservices" arch=('i686' 'x86_64') -url="http://github.com/mxcl/liblastfm/" +url='https://github.com/lastfm/liblastfm/' license=('GPL') -depends=('libsamplerate' 'fftw' 'qt') -makedepends=('ruby') -options=('!libtool') -source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/mxcl/${pkgname}/tarball/${pkgver}" - 'no-ftools.patch') -sha1sums=('f2e9705c9c2cbeaa14f46da9bd35ab36fe710392' - 'ba344601d29091fb88123f80592359369efdf338') +depends=('qt' 'fftw' 'libsamplerate') +makedepends=('cmake') +source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/lastfm/${pkgname}/tarball/${pkgver}") +sha1sums=('cd84cf61d315c9739b3b65e31c2854a6b1a38630') build() { - cd ${srcdir}/mxcl-${pkgname}-1c739eb - - patch -Np1 -i ${srcdir}/no-ftools.patch - - ruby configure --release --prefix /usr + mkdir build + cd build + cmake ../lastfm-${pkgname}-5826fe6 \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_TESTS=OFF make } package(){ - cd ${srcdir}/mxcl-${pkgname}-1c739eb - make DESTDIR=${pkgdir} install + cd build + make DESTDIR="${pkgdir}" install } diff --git a/no-ftools.patch b/no-ftools.patch deleted file mode 100644 index e8480c3..0000000 --- a/no-ftools.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- mxcl-liblastfm-3539836/admin/findsrc.rb~ 2010-09-19 10:35:34.783333338 +0200 -+++ mxcl-liblastfm-3539836/admin/findsrc.rb 2010-09-19 10:35:57.730000003 +0200 -@@ -1,6 +1,6 @@ - #!/usr/bin/ruby - require 'find' --require "#{File.dirname __FILE__}/platform" -+require "#{Dir.getwd}/admin/platform.rb" - - def findsrc dir='.' - excludes = ['.svn','.git','_include','tests','_build'] ---- mxcl-liblastfm-3539836/admin/qpp~ 2010-09-19 10:36:09.276666670 +0200 -+++ mxcl-liblastfm-3539836/admin/qpp 2010-09-19 10:36:16.926666670 +0200 -@@ -2,9 +2,8 @@ - # Creates a qmake .pro file for all valid SOURCES, HEADERS, FORMS and - # RESOURCES under each argument to ARGV as directories - --cwd=File.dirname __FILE__ - require 'find' --require "#{cwd}/findsrc" -+require "#{Dir.getwd}/admin/findsrc.rb" - - sources = Array.new - headers = Array.new ---- mxcl-liblastfm-3539836/admin/Makefile.rb~ 2010-09-19 10:35:38.086666671 +0200 -+++ mxcl-liblastfm-3539836/admin/Makefile.rb 2010-09-19 10:36:05.816666671 +0200 -@@ -4,9 +4,8 @@ - # and then creates the directory _include and creates files named after the - # class names in there which #include the file that contains the class - --cwd = File.dirname( __FILE__ ) - require 'find' --require "#{cwd}/platform.rb" -+require "#{Dir.getwd}/admin/platform.rb" - - - ######################################################################### defs