diff options
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | easymp3gain.install | 12 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..ee69470c3c8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = easymp3gain-qt4-bin + pkgdesc = Qt Graphical User Interface (GUI) for MP3Gain, VorbisGain and AACGain (binary package) + pkgver = 0.5.0 + pkgrel = 7 + url = http://easymp3gain.sourceforge.net/ + install = easymp3gain.install + arch = i686 + arch = x86_64 + license = GPL + depends = qt4 + depends = qt4pas + optdepends = mp3gain: for MP3 support + optdepends = vorbisgain: for OGG support + optdepends = aacgain: for AAC suport + provides = easymp3gain + conflicts = easymp3gain-gtk2 + conflicts = easymp3gain-gtk2-bin + conflicts = easymp3gain-qt4 + source = http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20i386/easymp3gain-0.5.0/easymp3gain-qt4_0.5.0_i386.tar.gz + sha512sums = b862917898488d4a21a31c9a806695e6d32358775717de5246ffc8c8288603c3cc2bb726c8fcc9bfdf8e4d2ef8e2ec8b3208d577c1d2dcc42602bfde96bb6724 + +pkgname = easymp3gain-qt4-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..0ea20e3c8d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +#! /bin/bash +# Maintainer: Jorge Barroso <jorge.barroso.11 at gmail dot com> +# Contributor: radu242 <rbutoi@gmail.com> + +pkgname=easymp3gain-qt4-bin +pkgver=0.5.0 +pkgrel=7 +pkgdesc="Qt Graphical User Interface (GUI) for MP3Gain, VorbisGain and AACGain (binary package)" +arch=('i686' 'x86_64') +url="http://easymp3gain.sourceforge.net/" +license=('GPL') +depends=('qt4' 'qt4pas') +optdepends=('mp3gain: for MP3 support' + 'vorbisgain: for OGG support' + 'aacgain: for AAC suport') +provides=('easymp3gain') +conflicts=('easymp3gain-gtk2' 'easymp3gain-gtk2-bin' 'easymp3gain-qt4') +install='easymp3gain.install' +[[ "${CARCH}" = "x86_64" ]] && _arch='amd64' || _arch='i386' +if [[ "${CARCH}" = "x86_64" ]]; then + source=("http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20x86_64/easymp3gain-${pkgver}/easymp3gain-qt4_${pkgver}_${_arch}.tar.gz") +else + source=("http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20i386/easymp3gain-${pkgver}/easymp3gain-qt4_${pkgver}_${_arch}.tar.gz") +fi +if [[ "${CARCH}" == "x86_64" ]]; then + sha512sums=('e72e9afae3d02092042521faea4475093043ab96b3c95a57b31bed6bf016c6e647543c7f1b466b41494024943382081ab73225c89d67e8b207c6e5c86aeeb1a1') +else + sha512sums=('b862917898488d4a21a31c9a806695e6d32358775717de5246ffc8c8288603c3cc2bb726c8fcc9bfdf8e4d2ef8e2ec8b3208d577c1d2dcc42602bfde96bb6724') +fi +package() { + cd ${srcdir}/easymp3gain-qt4_${pkgver}-1_${_arch}/ + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/doc" + mkdir -p "${pkgdir}/usr/share/easymp3gain" + + cp easymp3gain "${pkgdir}/usr/bin/" + cp -r applications "${pkgdir}/usr/share/" + cp -r help "${pkgdir}/usr/share/doc/easymp3gain-qt4" + cp -r lang "${pkgdir}/usr/share/easymp3gain/" + + for i in 16 22 24 32 48 64 128 192; do + mkdir -p "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps" + cp -r icons/easymp3gain-${i}.png ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/easymp3gain.png + done +} + +# vim:set ts=2 sw=2 et: diff --git a/easymp3gain.install b/easymp3gain.install new file mode 100644 index 00000000000..96061b5c078 --- /dev/null +++ b/easymp3gain.install @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -q /usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} +# vim:set ts=2 sw=2 et: |