diff options
author | Muflone | 2015-06-13 17:59:16 +0200 |
---|---|---|
committer | Muflone | 2015-06-13 17:59:16 +0200 |
commit | 254286f3631230e1d90ca44a525c68a33dccb4e8 (patch) | |
tree | 9324094f03a305ce6fc5b79e431f115006eab9ca | |
download | aur-easymp3gain-gtk2.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | bug_3556716.patch | 11 | ||||
-rw-r--r-- | easymp3gain.install | 12 | ||||
-rw-r--r-- | environmentoptions.xml | 6 | ||||
-rw-r--r-- | fix_missing_LazarusDir.diff | 16 | ||||
-rw-r--r-- | fix_missing_overload_on_AddTask.diff | 12 |
7 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1b1b31a057ed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = easymp3gain-gtk2 + pkgdesc = GTK2 Graphical User Interface (GUI) for MP3Gain, VorbisGain and AACGain + pkgver = 0.5.0 + pkgrel = 8 + url = http://easymp3gain.sourceforge.net/ + install = easymp3gain.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = lazarus + depends = gtk2 + optdepends = mp3gain: for MP3 support + optdepends = vorbisgain: for OGG support + optdepends = aacgain: for AAC suport + conflicts = easymp3gain-gtk2-bin + conflicts = easymp3gain-qt4 + conflicts = easymp3gain-qt4-bin + source = http://downloads.sourceforge.net/project/easymp3gain/easymp3gain%20source/easymp3gain-0.5.0/easymp3gain-0.5.0.src.tar.gz + source = bug_3556716.patch + source = fix_missing_overload_on_AddTask.diff + source = fix_missing_LazarusDir.diff + source = environmentoptions.xml + md5sums = b89c3a49ac571eed19b0985990749419 + md5sums = 1611000e9b03b0539619c28dab30bde2 + md5sums = 518ae86ddd399d1c81e720fa94821a76 + md5sums = 36e61f07c3319c343d26519f2be4e5d4 + md5sums = c44d393470cabf301543332fce365348 + +pkgname = easymp3gain-gtk2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20f0fcc22d75 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Muflone <muflone@vbsimple.net> +# Contributor: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com> + +pkgname=easymp3gain-gtk2 +pkgver=0.5.0 +pkgrel=8 +pkgdesc="GTK2 Graphical User Interface (GUI) for MP3Gain, VorbisGain and AACGain" +arch=('i686' 'x86_64') +url="http://easymp3gain.sourceforge.net/" +license=('GPL') +depends=('gtk2') +makedepends=('lazarus') +optdepends=('mp3gain: for MP3 support' + 'vorbisgain: for OGG support' + 'aacgain: for AAC suport') +conflicts=('easymp3gain-gtk2-bin' 'easymp3gain-qt4' 'easymp3gain-qt4-bin') +install='easymp3gain.install' +source=("http://downloads.sourceforge.net/project/easymp3gain/easymp3gain%20source/easymp3gain-${pkgver}/easymp3gain-${pkgver}.src.tar.gz" + "bug_3556716.patch" + "fix_missing_overload_on_AddTask.diff" + "fix_missing_LazarusDir.diff" + "environmentoptions.xml" + ) +md5sums=('b89c3a49ac571eed19b0985990749419' + '1611000e9b03b0539619c28dab30bde2' + '518ae86ddd399d1c81e720fa94821a76' + '36e61f07c3319c343d26519f2be4e5d4' + 'c44d393470cabf301543332fce365348' + ) + +build() { + cd "${srcdir}/easymp3gain-${pkgver}" + # Fixes SF bug #3556716 https://sourceforge.net/tracker/index.php?func=detail&aid=3556716&group_id=207001&atid=999854 + # See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623032 + patch -p1 -i "$srcdir/bug_3556716.patch" + # Fixes unitmain.pas(471,26) Error: function header doesn't match the previous declaration "TfrmMp3GainMain.AddTask(TSongItem,TMediaGainAction,Double):LongInt;" + patch -p1 -i "$srcdir/fix_missing_overload_on_AddTask.diff" + # Fixes missing .lazarus directory when lazarus wasn't properly configured with environment variables + # Here we create an alternate primary path for lazbuild + mkdir "lazarus-build" + cp "${srcdir}/environmentoptions.xml" lazarus-build/ + patch -p1 -i "$srcdir/fix_missing_LazarusDir.diff" + # Let's build + ./make.sh +} + +package() { + cd "${srcdir}/easymp3gain-${pkgver}" + DESTDIR=${pkgdir} ./install.sh +} diff --git a/bug_3556716.patch b/bug_3556716.patch new file mode 100644 index 000000000000..3df7eb81c3cf --- /dev/null +++ b/bug_3556716.patch @@ -0,0 +1,11 @@ +diff -aur easymp3gain-0.5.0.pristine/easymp3gain.lpi easymp3gain-0.5.0/easymp3gain.lpi +--- easymp3gain-0.5.0.pristine/easymp3gain.lpi 2012-08-12 16:19:33.146704395 +0000 ++++ easymp3gain-0.5.0/easymp3gain.lpi 2012-08-12 16:20:33.650039836 +0000 +@@ -490,7 +490,6 @@ + </Parsing> + <CodeGeneration> + <SmartLinkUnit Value="True"/> +- <TargetCPU Value="x86_64"/> + <TargetOS Value="Linux"/> + </CodeGeneration> + <Linking> diff --git a/easymp3gain.install b/easymp3gain.install new file mode 100644 index 000000000000..f69194876545 --- /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 +} + diff --git a/environmentoptions.xml b/environmentoptions.xml new file mode 100644 index 000000000000..643e5ab2be68 --- /dev/null +++ b/environmentoptions.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<CONFIG> + <EnvironmentOptions> + <LazarusDirectory Value="/usr/lib/lazarus"/> + </EnvironmentOptions> +</CONFIG> diff --git a/fix_missing_LazarusDir.diff b/fix_missing_LazarusDir.diff new file mode 100644 index 000000000000..c98512df26d0 --- /dev/null +++ b/fix_missing_LazarusDir.diff @@ -0,0 +1,16 @@ +diff -aur easymp3gain-0.5.0.orig/make.sh easymp3gain-0.5.0/make.sh +--- easymp3gain-0.5.0.orig/make.sh 2009-12-30 17:14:08.000000000 +0100 ++++ easymp3gain-0.5.0/make.sh 2013-06-12 01:05:00.070560109 +0200 +@@ -30,10 +30,10 @@ + mkdir -p ./bin/qt4 + mkdir -p ./bin/gtk2 + if [ "$WIDGET" == "qt4" ]; then +-lazbuild -B --ws=qt easymp3gain.lpr ++lazbuild -B --ws=qt --primary-config-path=lazarus-build easymp3gain.lpr + mv ./bin/easymp3gain ./bin/qt4/ + else +-lazbuild -B --ws=gtk2 easymp3gain.lpr ++lazbuild -B --ws=gtk2 --primary-config-path=lazarus-build easymp3gain.lpr + mv ./bin/easymp3gain ./bin/gtk2/ + fi + diff --git a/fix_missing_overload_on_AddTask.diff b/fix_missing_overload_on_AddTask.diff new file mode 100644 index 000000000000..21fd62fc89de --- /dev/null +++ b/fix_missing_overload_on_AddTask.diff @@ -0,0 +1,12 @@ +diff -aur easymp3gain-0.5.0.orig/unitmain.pas easymp3gain-0.5.0/unitmain.pas +--- easymp3gain-0.5.0.orig/unitmain.pas 2009-12-30 23:19:56.000000000 +0100 ++++ easymp3gain-0.5.0/unitmain.pas 2013-05-31 00:16:24.991257996 +0200 +@@ -169,7 +169,7 @@ + procedure AddFileAndDirectoryList(SL: TStringList; sublevels: Integer); + procedure UpdateFileCount; + procedure SortListView(Lv:TListView; Index:integer; Reverse: Boolean); +- function AddTask(ASongItem: TSongItem; AMediaGainAction: TMediaGainAction; AVolume: Double): Integer; ++ function AddTask(ASongItem: TSongItem; AMediaGainAction: TMediaGainAction; AVolume: Double): Integer; overload; + function FitsTaskType(ATask: TMediaGainTask; AMediaGainAction: TMediaGainAction; ASongItem: TSongItem): Boolean; + { private declarations } + public |