#!/bin/sh

name="mp3asm"
title="mp3asm"
package="mp3asm"
version="0.1.3"
build="1"
noarch="n"
build_info="Standard build."

info="A small tool to fix and manipulate MP3 files."
info_pl="Małe narzędzie do manipulacji plikami MP3."
desc="mp3asm is a small but useful tool which can be used for the
following: finding errors in MPEG audio (.mp3) files, fixing
broken MP3 files, cutting and re-assembling MP3 files."
desc_pl="mp3asm jest małym, ale użytecznym narzędziem, które może być
używane do: znajdowania błędów w plikach audio MPEG (.mp3),
naprawiania popsutych empetrójek, obcinania i składania plików
MP3."
category="editor/sound"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="COPYING,ChangeLog,README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://ftp.sf.net/pub/sourceforge/$name/$name-$version.tar.bz2 $name-`echo $version | cut -d '.' -f 1-2`

replace_regexp $src1/configure "^VERSION=0.1.2$" "VERSION=$version"
replace_regexp $src1/configure "-g -O -Wall" "-g -O2 -Wall"

configure_option --prefix=/usr
install_option DESTDIR=$pkg_main

parent_package="$package"
write_info main

cd $src1

do_configure
do_make
do_install

make_docs

make_package main

clean_up
