From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/mp3gain/PKGBUILD | 27 +++++++++++++++++++++++++++ community/mp3gain/build-fix.patch | 22 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 community/mp3gain/PKGBUILD create mode 100644 community/mp3gain/build-fix.patch (limited to 'community/mp3gain') diff --git a/community/mp3gain/PKGBUILD b/community/mp3gain/PKGBUILD new file mode 100644 index 000000000..d3ec615a4 --- /dev/null +++ b/community/mp3gain/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 66240 2012-02-23 05:13:54Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: Alessio 'mOLOk' Bolognino +# Contributor: keith + +pkgname=mp3gain +pkgver=1.5.2 +pkgrel=2 +pkgdesc="Lossless mp3 normalizer with statistical analysis " +arch=('i686' 'x86_64') +url="http://mp3gain.sourceforge.net" +license=("GPL") +depends=('glibc') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//./_}-src.zip + build-fix.patch) +md5sums=('d888563538ec863eeea8afc8207b2739' + '20680cbada13ba941b0532ff94e583e1') + +build() { + cd $srcdir + + mkdir -p $pkgdir/usr/bin + patch -p0 Makefile <$srcdir/build-fix.patch + + make OSTYPE=linux + make OSTYPE=linux INSTALL_PATH=$pkgdir/usr/bin install +} diff --git a/community/mp3gain/build-fix.patch b/community/mp3gain/build-fix.patch new file mode 100644 index 000000000..6297f0a52 --- /dev/null +++ b/community/mp3gain/build-fix.patch @@ -0,0 +1,22 @@ +22d21 +< ifneq ($(OSTYPE),beos) +24,26d22 +< else +< INSTALL_PATH= $(HOME)/config/bin +< endif +28,29d23 +< # BeOS doesn't have libm (it's all in libroot) +< ifneq ($(OSTYPE),beos) +31,34d24 +< else +< # BeOS: without this it wants to use bcopy() :^) +< CFLAGS+= -DHAVE_MEMCPY +< endif +56,58d45 +< ifeq ($(OSTYPE),beos) +< mimeset -f mp3gain$(EXE_EXT) +< endif +63,65d49 +< ifeq ($(OSTYPE),beos) +< mimeset -f "$(INSTALL_PATH)/mp3gain$(EXE_EXT)" +< endif -- cgit v1.2.3-54-g00ecf