summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/imule/PKGBUILD33
-rw-r--r--pcr/imule/binutils-update.patch22
2 files changed, 47 insertions, 8 deletions
diff --git a/pcr/imule/PKGBUILD b/pcr/imule/PKGBUILD
index 8d7635699..4ec2055ca 100644
--- a/pcr/imule/PKGBUILD
+++ b/pcr/imule/PKGBUILD
@@ -1,18 +1,34 @@
-# Maintainer: Black Dragon <blackdrg at i2pmail dot org>
-# Contributor: atterratio <atterratio at gmail dot com>
+# Maintainer (aur): Que Quotion <quequotion at gmail dot com>
+# Contributor (aur): Black Dragon <blackdrg at i2pmail dot org>
+# Contributor (aur): atterratio <atterratio at gmail dot com>
+
+# NOTE: this PKGBUILD requires I2P to be running on the local machine
pkgname=imule
pkgver=2.3.3.3
-pkgrel=3
-pkgdesc="Anonymous P2P file sharing software."
+pkgrel=5
+pkgdesc="Anonymous P2P file sharing software"
arch=("i686" "x86_64")
+arch+=("armv7h")
url="http://www.imule.i2p/"
license=("GPL")
-depends=("wxgtk" "crypto++")
+depends=("wxgtk2" "crypto++")
optdepends=("i2p: anonymous routing")
-source=("https://echelon.i2p.us/imule/2.3.3.3/iMule-${pkgver}-src.tbz")
-options=(!emptydirs)
-sha512sums=("b34f5d752b75632031d194666959bc323c745936c64c9944f4da419b365f8db079760f2e9282ab7b40978aa1179d89709b10864938d1c9f7fb3e007c8402f712")
+
+# Does this even work?
+source=("http://echelon.i2p/imule/2.3.3.3/iMule-${pkgver}-src.tbz"
+ binutils-update.patch)
+export http_proxy=127.0.0.1:4444
+
+# Use a libmakepkg plugin for i2p
+#source=("i2p+http://echelon.i2p/imule/2.3.3.3/iMule-${pkgver}-src.tbz"
+# binutils-update.patch)
+
+prepare() {
+ cd "${srcdir}/iMule-${pkgver}-src"
+ sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' src/ClientCreditsList.cpp
+ patch -Np0 < ../binutils-update.patch
+}
build() {
cd "${srcdir}/iMule-${pkgver}-src"
@@ -31,5 +47,6 @@ check() {
package() {
cd "${srcdir}/iMule-${pkgver}-src"
make DESTDIR=${pkgdir} install
+ #It's hack. If U know best way to not instal this desktop file tell me.
rm ${pkgdir}/usr/share/applications/imulegui.desktop
}
diff --git a/pcr/imule/binutils-update.patch b/pcr/imule/binutils-update.patch
new file mode 100644
index 000000000..93defdc61
--- /dev/null
+++ b/pcr/imule/binutils-update.patch
@@ -0,0 +1,22 @@
+--- src/libs/common/MuleDebug.cpp 2020-03-08 12:28:52.588068625 +0900
++++ src/libs/common/MuleDebug.cpp 2020-03-08 12:29:18.837068569 +0900
+@@ -264,7 +264,7 @@
+ return;
+ }
+
+- bfd_vma vma = bfd_get_section_vma(abfd, section);
++ bfd_vma vma = bfd_section_vma(section);
+
+ unsigned long address = (unsigned long)_address;
+ if (address < vma) {
+--- src/libs/common/MuleDebug.cpp 2020-03-08 12:32:13.913068190 +0900
++++ src/libs/common/MuleDebug.cpp 2020-03-08 12:33:43.956067995 +0900
+@@ -271,7 +271,7 @@
+ return;
+ }
+
+- bfd_size_type size = bfd_section_size(abfd, section);
++ bfd_size_type size = bfd_section_size(section);
+ if (address > (vma + size)) {
+ return;
+ }