# $Id: PKGBUILD 340352 2018-06-04 14:04:11Z felixonmars $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Zhukov Pavel <gelios@gmail.com>

pkgname=mp3unicode
pkgver=1.2.1
pkgrel=4
pkgdesc="A command line utility to convert ID3 tags in mp3 files between different encodings"
arch=('x86_64')
url="http://mp3unicode.yellowsite.ru/"
license=('GPL')
depends=('taglib')
source=(https://github.com/downloads/alonbl/$pkgname/$pkgname-$pkgver.tar.bz2)
sha512sums=('b1ca820d1ecf6b5e0e59a8267c0cc6af5f8218191885b9a538a53b4f112f77510b3c5da81ce1e0a98d60c19b621965cea7e8e5c7b6c035054ea362fc02ed64b2')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install
}
