### this file is sourced not run
PKGNAME=easytag
PKGVER=2.2.6
PKGBUILD=1
PKGARCH=x86_64

# source: JakeSFR
TARBALL=${PKGNAME}-${PKGVER}.tar.xz
MD5SUM=204b50cb46afa9b40f89774e8dda5f62
SRC_URL=https://download.gnome.org/sources/easytag/2.2/${TARBALL}
BUNDLE=

SLACKREQ='gtk2
libflac
libvorbis
libtaglib
libid3lib
libid3tag
libopusfile
libwavpack'

SLACKINSTALL=''

SLACKDESC="${PKGNAME}: ${PKGNAME} ${PKGVER} (Tag editor for MP3, Ogg, FLAC, ...)  
${PKGNAME}: 
${PKGNAME}: EasyTAG is a simple application for viewing and editing tags
${PKGNAME}: in audio files. It supports MP3, MP2, MP4/AAC, FLAC, Ogg Opus,
${PKGNAME}: Ogg Speex, Ogg Vorbis, MusePack, Monkey's Audio, and WavPack files.
${PKGNAME}: 
${PKGNAME}: This is the last GTK+2 version.
${PKGNAME}: 
${PKGNAME}: https://wiki.gnome.org/Apps/EasyTAG
${PKGNAME}: 
${PKGNAME}: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/${PKGNAME}* &&
	patch -Np1 -i ../pkg/disable-help.patch &&
	true
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="${CONFFLAGS} --with-gtk2"
	cd /tmp/${PKGNAME}* &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	# Missing icons, taken from Adwaita theme
	install -Dm644 ../pkg/insert-text.png /usr/share/icons/hicolor/16x16/actions/insert-text.png &&
	install -Dm644 ../pkg/insert-image.png /usr/share/icons/hicolor/16x16/actions/insert-image.png &&
	rm -f /usr/share/icons/hicolor/icon-theme.cache &&
	true
}
