void-packages/srcpkgs/mp3info/template
2021-08-29 18:07:28 +07:00

37 lines
981 B
Bash

# Template file for 'mp3info'
pkgname=mp3info
version=0.8.5a
revision=5
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.org>"
license="GPL-2.0-or-later"
homepage="http://ibiblio.org/mp3info/"
distfiles="https://ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/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
}
mp3info-gtk_package() {
short_desc+=" - gtk user interface"
pkg_install() {
vmove usr/bin/gmp3info
}
}