summaryrefslogtreecommitdiff
path: root/community/lib32-mpg123
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-12 00:04:35 +0000
committerroot <root@rshg054.dnsready.net>2012-07-12 00:04:35 +0000
commit00d32b0938eebfa45f0543cae655abf5233eb99c (patch)
tree7528e734c1f6f955da0baca5909906e797562c09 /community/lib32-mpg123
parentb44e3e7f16abe5e4cb428571db65d300b7cc44be (diff)
Thu Jul 12 00:04:34 UTC 2012
Diffstat (limited to 'community/lib32-mpg123')
-rw-r--r--community/lib32-mpg123/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/lib32-mpg123/PKGBUILD b/community/lib32-mpg123/PKGBUILD
new file mode 100644
index 000000000..80a486faa
--- /dev/null
+++ b/community/lib32-mpg123/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 73581 2012-07-10 16:06:46Z svenstaro $
+# Maintainer: Hugo Doria <hugo@archlinux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+
+_pkgbasename=mpg123
+pkgname=lib32-$_pkgbasename
+pkgver=1.14.3
+pkgrel=1
+pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3 (32-bit)"
+arch=('x86_64')
+url="http://sourceforge.net/projects/mpg123"
+license=('GPL2' 'LGPL2.1')
+depends=('lib32-glibc' 'lib32-libtool' 'lib32-alsa-lib' $_pkgbasename)
+makedepends=('lib32-sdl' gcc-multilib libtool-multilib)
+optdepends=('lib32-sdl: for additional audio support')
+options=('libtool')
+source=(http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2)
+md5sums=('443473ffae67b57bbf95c8ed63f0c7c9')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+
+ ./configure --prefix=/usr --with-audio="alsa sdl" --with-cpu=i586 --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+}