void-packages/srcpkgs/mp3info/template
2016-09-07 06:39:34 +02:00

29 lines
830 B
Bash

# Template file for 'mp3info'
pkgname=mp3info
version=0.8.5a
revision=3
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="gtk+-devel ncurses-devel"
short_desc="utility used to read and modify the ID3 tags of MP3 files"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="http://ibiblio.org/mp3info/"
distfiles="http://fossies.org/linux/misc/mp3info-${version}.tgz"
checksum=0438ac68e9f04947fb14ca5573d27c62454cb9db3a93b7f1d2c226cd3e0b4e10
pre_configure() {
sed -i 's%uint\*%unsigned int*%g' mp3tech.c
sed -i Makefile \
-e 's%$(CC) $(CFLAGS)%& $(LDFLAGS)%' \
-e 's%$(CC) $(XSRC) $(CFLAGS)%& $(LDFLAGS)%'
}
pre_install() {
sed -i '/STRIP/d' Makefile
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
make prefix=${DESTDIR}/usr mandir=${DESTDIR}/usr/share/man/man1 install
}