# $Id: PKGBUILD 213425 2014-05-23 22:49:48Z heftig $ # Maintainer: Jan Alexander Steffens (heftig) # Contributor: Jan de Groot # Contributor: Ben pkgname=sound-juicer pkgver=3.12.0 pkgrel=1 pkgdesc="A cd ripper application" arch=(i686 x86_64) license=(GPL) depends=(libmusicbrainz5 libdiscid gtk3 gst-plugins-base gst-plugins-good brasero hicolor-icon-theme iso-codes) makedepends=(intltool itstool) options=(!emptydirs) url="http://www.gnome.org" source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz) install=sound-juicer.install sha256sums=('c6f98dc6d453e2890fdc3bb7d2e360318d82dafd0304aa0a23ff6ea10b7aff1f') build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var # drop unneeded direct library deps with --as-needed # libtool doesn't make this easy, so we do it the hard way sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }