Advertisement
Guest User

Untitled

a guest
Feb 13th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. # $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $
  2. # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  3. # Contributor: Corrado Primier <bardo@aur.archlinux.org>
  4. # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
  5.  
  6. pkgname=musepack-tools
  7. pkgver=475
  8. pkgrel=2
  9. pkgdesc="Musepack decoder/encoder"
  10. arch=('i686' 'x86_64')
  11. url="http://www.musepack.net/"
  12. license=('LGPL')
  13. depends=('libcuefile' 'libreplaygain')
  14. makedepends=('cmake')
  15. source=("http://files.musepack.net/source/musepack_src_r$pkgver.tar.gz"
  16.         'math.patch'
  17.         'static.patch')
  18. md5sums=('754d67be67f713e54baf70fcfdb2817e'
  19.          '9de31f07a3492c7b1db1248b055fbdc8'
  20.          '96c734446239a5a02bc71cd963b388ea')
  21.  
  22. build() {
  23.   cd "$srcdir/musepack_src_r$pkgver"
  24.  
  25.   #export LDFLAGS+="-lm"
  26.  
  27.   patch -Np1 -i "$srcdir/math.patch"
  28.   patch -Np1 -i "$srcdir/static.patch"
  29.  
  30.   cmake . -DCMAKE_INSTALL_PREFIX=/usr \
  31.           -DCMAKE_SKIP_RPATH=ON
  32. }
  33.  
  34. package() {
  35.   cd "$srcdir/musepack_src_r$pkgver"
  36.  
  37.   make DESTDIR="$pkgdir" install
  38.  
  39.   for bin in chap cut dec enc gain 2sv8; do
  40.     install -Dm755 mpc$bin/mpc$bin "$pkgdir/usr/bin/mpc$bin"
  41.   done
  42.  
  43.   find ${pkgdir} -depth -type d -name .svn -exec rm -rf {} \;
  44. }
  45.  
  46. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement