aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 22:16:21 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:31:56 +0000
commit0938cb9381c1610f040904e92ff88fbab2ababd1 (patch)
tree77b2979f7cde53b29f9bbfd587668e1fd7093e16
parent86ebf864ee2b16ede68ec5607d1fa913a7ada752 (diff)
downloadaports-0938cb9381c1610f040904e92ff88fbab2ababd1.tar.gz
aports-0938cb9381c1610f040904e92ff88fbab2ababd1.tar.bz2
aports-0938cb9381c1610f040904e92ff88fbab2ababd1.tar.xz
main/libid3tag: modernise, add check, fix metadata
-rw-r--r--main/libid3tag/APKBUILD39
1 files changed, 16 insertions, 23 deletions
diff --git a/main/libid3tag/APKBUILD b/main/libid3tag/APKBUILD
index 1acbf1bd60..175579c254 100644
--- a/main/libid3tag/APKBUILD
+++ b/main/libid3tag/APKBUILD
@@ -2,11 +2,11 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=libid3tag
pkgver=0.15.1b
-pkgrel=6
-pkgdesc="id3 tagger for mp3"
+pkgrel=7
+pkgdesc="MAD ID3 tagger for MP3 audio files"
url="http://www.underbit.com/products/mad/"
arch="all"
-license="GPL"
+license="GPL-2.0+"
depends=""
makedepends="zlib-dev"
install=
@@ -15,35 +15,32 @@ source="ftp://ftp.mars.org/pub/mpeg/libid3tag-$pkgver.tar.gz
CVE-2008-2109.patch
"
-_builddir="$srcdir/$pkgname-$pkgver"
-
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/lib/pkgconfig
cat > "$pkgdir"/usr/lib/pkgconfig/id3tag.pc <<EOF
prefix=/usr
@@ -60,9 +57,5 @@ Cflags:
EOF
}
-md5sums="e5808ad997ba32c498803822078748c3 libid3tag-0.15.1b.tar.gz
-19696a5d683456983f120e53294d8ca6 CVE-2008-2109.patch"
-sha256sums="63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151 libid3tag-0.15.1b.tar.gz
-bd3e690078ad7a48a2acfba7115d4ac37e4e2f6e083a8249306d422746e04b62 CVE-2008-2109.patch"
sha512sums="ade7ce2a43c3646b4c9fdc642095174b9d4938b078b205cd40906d525acd17e87ad76064054a961f391edcba6495441450af2f68be69f116549ca666b069e6d3 libid3tag-0.15.1b.tar.gz
fc79d44ca9d1435ab5b11d4da6b46d3684827a1384a0156cd88242225f98f3a0668c0d6e6a88159f0c4985fcbdc636777c2f100d7f371eef258a6050d6fde567 CVE-2008-2109.patch"