SHARE
TWEET

Untitled

a guest Dec 23rd, 2016 7 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # $Id$
  2. # Maintainer: Sven Fischer <aur.archlinux@linux4tw.de>
  3.  
  4. pkgname=guayadeque-git
  5. _pkgname=guayadeque
  6. pkgver=0.4.5.r2038.e88da682
  7. pkgrel=1
  8. pkgdesc='Lightweight music player'
  9. arch=('i686' 'x86_64')
  10. url='http://guayadeque.org/'
  11. license=('GPL3')
  12. provides=(${pkgname%-*})
  13. conflicts=(${pkgname%-*})
  14. depends=('curl' 'desktop-file-utils' 'libgpod' 'taglib' 'wxgtk' 'gdk-pixbuf2' 'wxsqlite3' 'gst-plugins-base-libs')
  15. makedepends=('git' 'cmake' 'gst-editing-services')
  16. optdepends=('gst-plugins-good: additional codecs'
  17.             'gst-plugins-bad: additional codecs'
  18.             'gst-plugins-ugly: additional codecs'
  19.             'gst-libav: libav codec'
  20.             'gvfs: Support for external devices')
  21. source=('git+https://github.com/anonbeat/guayadeque.git'
  22.         '0001-use-cmake-lib-search-procedure-for-wxsqlite3-from-mu.patch')
  23. sha512sums=('SKIP'
  24. '1985aad8d5121f65cdc3b79a20abfe345475898a06f39a459812fa2257e3f11affaf12d2983d7227298a7f03f9b6b396a03f1fc21806c6fed3648ee44764b096')
  25.  
  26. prepare() {
  27.   cd "${srcdir}/${_pkgname}"
  28.   patch -Np1 -i ../0001-use-cmake-lib-search-procedure-for-wxsqlite3-from-mu.patch
  29. }
  30.  
  31. pkgver() {
  32.   cd "${srcdir}/${_pkgname}"
  33.   local srcversion="$(grep "ID_GUAYADEQUE_VERSION" src/Version.h.in | cut -d '"' -f 2)"
  34.   printf "%s.r%s.%s" $srcversion "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  35. }
  36.  
  37. build() {
  38.   cd "${srcdir}/${_pkgname}"
  39.   ./buildt
  40.   cmake . \
  41.     -DCMAKE_CXX_STANDARD='11' \
  42.     -DCMAKE_BUILD_TYPE='Release' \
  43.     -DCMAKE_INSTALL_PREFIX=${pkgdir} \
  44.     -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc' \
  45.     -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config' \
  46.     -DwxWidgets_INCLUDE_DIRS='/usr/include/wx/'
  47.   make
  48. }
  49.  
  50. package() {
  51.   cd "${srcdir}/${_pkgname}"
  52.   make DESTDIR="${pkgdir}" install
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top