From d36d20d62de4dfa05d36aba2ed5a630fc8c10ed8 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Tue, 28 Apr 2020 00:06:54 -0400 Subject: [PATCH] update more apps --- src/chirp-daily/PKGBUILD | 27 ++++++++++ src/ida-free/PKGBUILD | 43 +++++++++++++++ src/ida-free/ida-free.desktop | 8 +++ src/intellij-idea-ultimate-edition/PKGBUILD | 6 +-- src/makemkv/PKGBUILD | 6 +-- src/pygtk/PKGBUILD | 55 +++++++++++++++++++ src/pygtk/fix-leaks-of-pango-objects.patch | 59 +++++++++++++++++++++ src/pygtk/python27.patch | 50 +++++++++++++++++ 8 files changed, 248 insertions(+), 6 deletions(-) create mode 100644 src/chirp-daily/PKGBUILD create mode 100644 src/ida-free/PKGBUILD create mode 100644 src/ida-free/ida-free.desktop create mode 100644 src/pygtk/PKGBUILD create mode 100644 src/pygtk/fix-leaks-of-pango-objects.patch create mode 100644 src/pygtk/python27.patch diff --git a/src/chirp-daily/PKGBUILD b/src/chirp-daily/PKGBUILD new file mode 100644 index 0000000..2132701 --- /dev/null +++ b/src/chirp-daily/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Erez Raviv (erezraviv@gmail.com) +pkgname=chirp-daily +pkgver=20200409 +pkgrel=1 +pkgdesc="Latest build for GUI tool for programming ham radios" +arch=('any') +url="http://chirp.danplanet.com/" +license=('GPL3') +depends=('python2-lxml' 'python2-pyserial' 'pygtk') +optdepends=('hamradio-menus') +options=(!emptydirs) +conflicts=(chirp) +provides=(chirp) +install= +sha1sums=(8c332cbd36335d8b8390d5a62ea96891219bc6ce) +DLAGENTS=("https::/usr/bin/curl -k -o %o %u") +source=("https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-daily-20200409.tar.gz") + +build() { + tar xvf $pkgname-$pkgver.tar.gz +} + +package() { + cd "$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + diff --git a/src/ida-free/PKGBUILD b/src/ida-free/PKGBUILD new file mode 100644 index 0000000..ea53727 --- /dev/null +++ b/src/ida-free/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: fatalis +pkgname=ida-free +pkgver=7.0.191002 +pkgrel=1 +pkgdesc="Freeware version of the world's smartest and most feature-full disassembler" +arch=('x86_64') +url='https://www.hex-rays.com/products/ida/' +license=('custom') +makedepends=('fakechroot') +options=('!strip') +_originalname='idafree70_linux.run' +_installer="${_originalname}-${pkgver}-${pkgrel}" +source=("${_installer}::https://out7.hex-rays.com/files/${_originalname}" + 'ida-free.desktop') +sha256sums=('136e0e1995f16e1ff85244c269450fa91fb5454a565ca7623712f34ac004e245' + '55f2ed3f165df6efb5f7975b17d8e53bee1d88cad33efb9d4422402213d17440') + +package() { + install -d "${pkgdir}"/opt/${pkgname} + install -d "${pkgdir}"/usr/bin + install -d "${pkgdir}"/usr/share/{icons,applications,licenses/${pkgname}} + install -d "${pkgdir}"/tmp + + # chroot is needed to prevent the installer from creating a single file outside of prefix + # have to copy the installer due to chroot + cp "${srcdir}"/${_installer} "${pkgdir}"/ + chmod +x "${pkgdir}"/${_installer} + fakechroot chroot "${pkgdir}" /${_installer} --mode unattended --prefix /opt/${pkgname} --installpassword "" + rm "${pkgdir}"/${_installer} + rm "${pkgdir}"/tmp/bitrock_installer.log + rmdir "${pkgdir}"/tmp + + # the installer needlessly makes a lot of files executable + find "${pkgdir}"/opt/${pkgname} -type f -exec chmod -x {} \; + chmod +x "${pkgdir}"/opt/${pkgname}/{ida64,assistant} + + rm "${pkgdir}"/opt/${pkgname}/{uninstall*,Uninstall*} + + install "${srcdir}"/ida-free.desktop "${pkgdir}"/usr/share/applications + ln -s /opt/${pkgname}/appico64.png "${pkgdir}"/usr/share/icons/ida-free.png + ln -s /opt/${pkgname}/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + ln -s /opt/${pkgname}/ida64 "${pkgdir}"/usr/bin/ida64 +} diff --git a/src/ida-free/ida-free.desktop b/src/ida-free/ida-free.desktop new file mode 100644 index 0000000..122082e --- /dev/null +++ b/src/ida-free/ida-free.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=IDA +Comment=The Interactive Disassembler +Exec=/opt/ida-free/ida64 +Icon=ida-free +Terminal=false +Type=Application +Categories=Development diff --git a/src/intellij-idea-ultimate-edition/PKGBUILD b/src/intellij-idea-ultimate-edition/PKGBUILD index 83f8be8..3aea575 100644 --- a/src/intellij-idea-ultimate-edition/PKGBUILD +++ b/src/intellij-idea-ultimate-edition/PKGBUILD @@ -2,8 +2,8 @@ pkgbase=intellij-idea-ultimate-edition pkgname=(intellij-idea-ultimate-edition intellij-idea-ultimate-edition-jre) -pkgver=2019.3.3 -_buildver=193.6494.35 +pkgver=2020.1 +_buildver=201.6668.121 pkgrel=1 arch=('any') pkgdesc="An intelligent IDE for Java, Groovy and other programming languages with advanced refactoring features intensely focused on developer productivity." @@ -12,7 +12,7 @@ license=('Commercial') options=(!strip) source=("https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz" "jetbrains-idea.desktop") -sha256sums=('a71b367f36e528bed8be170a7676372b58b2df1bc572f611194efa4104c4b0d6' +sha256sums=('b8f352cf3ca59613ce02692911e8ab271c7d2365d4a5c6e6e0efb39c71d37412' '83af2ba8f9f14275a6684e79d6d4bd9b48cd852c047dacfc81324588fa2ff92b') prepare() { diff --git a/src/makemkv/PKGBUILD b/src/makemkv/PKGBUILD index 044c160..72e43f8 100644 --- a/src/makemkv/PKGBUILD +++ b/src/makemkv/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Olaf Bauer pkgname=makemkv -pkgver=1.14.7 +pkgver=1.15.0 pkgrel=1 pkgdesc="DVD and Blu-ray to MKV converter and network streamer" arch=('i686' 'x86_64') @@ -18,8 +18,8 @@ source=(${url}/download/${pkgname}-bin-${pkgver}.tar.gz makemkv.1 makemkvcon.1 mmdtsdec.1) -md5sums=('810bd3d2b69a44e9455b1afb79e4928c' - 'd9509e7f3c38620be2f5037fac8fcb09' +md5sums=('3a96917046b57c8bb8475cd2e9abd9b8' + '375b3268850bfdaa86966b3524fe6dce' '1f9b3a91427a2015434e501542443f4c' '7f4b112c5178860cc2eb25059ae1af2a' '9476154228bf1b1f983178ba8565ac44') diff --git a/src/pygtk/PKGBUILD b/src/pygtk/PKGBUILD new file mode 100644 index 0000000..3b6c73c --- /dev/null +++ b/src/pygtk/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Jan de Groot +# Contributor: Sarah Hay + +pkgname=pygtk +pkgver=2.24.0 +pkgrel=11 +pkgdesc="Python bindings for the GTK widget set" +url="http://www.pygtk.org/" +arch=('x86_64') +license=('LGPL') +depends=('libglade' 'python2-cairo' 'python2-gobject2') +makedepends=('python2-numpy' 'pygobject2-devel') +optdepends=('python2-numpy') +source=(https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + "https://gitlab.gnome.org/Archive/pygtk/-/commit/4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch" + python27.patch + fix-leaks-of-pango-objects.patch) +sha256sums=('cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912' + '45700d4e048aeb353a71c9aa182b8299ddfb485e00845045561660ef7317bbbc' + '39a30456cba055a452bb55c74ef1ff2f5f7bfaad22855b4dd569ab009b56b682' + '0ca9e910e9bb88897089dd19752a419aa78de15463df766cb19a1d0c2dd45bcb') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # https://bugzilla.gnome.org/show_bug.cgi?id=623965 + patch -Np1 -i "${srcdir}/python27.patch" + + # https://bugzilla.gnome.org/show_bug.cgi?id=660216 + patch -Np1 -i "${srcdir}/fix-leaks-of-pango-objects.patch" + + # fix build with new pango: + # https://gitlab.gnome.org/Archive/pygtk/-/merge_requests/1 + patch -p1 -i ../4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch + + # Python 2 + sed -i -e 's#env python$#env python2#' examples/pygtk-demo/{,demos/}*.py + + # No docs + sed -i '/^SUBDIRS =/s/docs//' Makefile.in +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-docs + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -m644 gtk/gtk-extrafuncs.defs "${pkgdir}/usr/share/pygtk/2.0/defs/" +} diff --git a/src/pygtk/fix-leaks-of-pango-objects.patch b/src/pygtk/fix-leaks-of-pango-objects.patch new file mode 100644 index 0000000..c935dd6 --- /dev/null +++ b/src/pygtk/fix-leaks-of-pango-objects.patch @@ -0,0 +1,59 @@ +From eca72baa5616fbe4dbebea43c7e5940847dc5ab8 Mon Sep 17 00:00:00 2001 +From: "Owen W. Taylor" +Date: Tue, 27 Sep 2011 00:17:52 -0400 +Subject: Fix leaks of Pango objects + +Gtk.PrintContext.create_pango_context() +Gtk.PrintContext.create_pango_layout() +pangocairo.CairoContext.create_layout() + +were leaking the objects they returned. + +https://bugzilla.gnome.org/show_bug.cgi?id=660216 + +diff --git a/gtk/gtk-2.10.defs b/gtk/gtk-2.10.defs +index 69c7e0c..faa45e1 100644 +--- a/gtk/gtk-2.10.defs ++++ b/gtk/gtk-2.10.defs +@@ -1388,12 +1388,14 @@ + (define-method create_pango_context + (of-object "GtkPrintContext") + (c-name "gtk_print_context_create_pango_context") ++ (caller-owns-return #t) + (return-type "PangoContext*") + ) + + (define-method create_pango_layout + (of-object "GtkPrintContext") + (c-name "gtk_print_context_create_pango_layout") ++ (caller-owns-return #t) + (return-type "PangoLayout*") + ) + +diff --git a/pangocairo.override b/pangocairo.override +index bb923e6..5101107 100644 +--- a/pangocairo.override ++++ b/pangocairo.override +@@ -118,11 +118,16 @@ _wrap_pango_cairo_update_context(PyGObject *self, PyObject *args, PyObject *kwar + static PyObject * + _wrap_pango_cairo_create_layout(PyGObject *self) + { +- PangoLayout *ret; ++ PangoLayout *layout; ++ PyObject *ret; + +- ret = pango_cairo_create_layout(PycairoContext_GET(self)); ++ layout = pango_cairo_create_layout(PycairoContext_GET(self)); + /* pygobject_new handles NULL checking */ +- return pygobject_new((GObject *)ret); ++ ret = pygobject_new((GObject *)layout); ++ if (layout) ++ g_object_unref(layout); ++ ++ return ret; + } + + static PyObject * +-- +cgit v0.10.2 + diff --git a/src/pygtk/python27.patch b/src/pygtk/python27.patch new file mode 100644 index 0000000..9bbe2b5 --- /dev/null +++ b/src/pygtk/python27.patch @@ -0,0 +1,50 @@ +diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c +index c0e1493..aa8cf10 100644 +--- a/gtk/gtkmodule.c ++++ b/gtk/gtkmodule.c +@@ -227,8 +227,12 @@ init_gtk(void) + pygtk_add_stock_items(d); + + /* extension API */ +- PyDict_SetItemString(d, "_PyGtk_API", +- o=PyCObject_FromVoidPtr(&functions, NULL)); ++#if PY_VERSION_HEX >= 0x02070000 ++ o = PyCapsule_New(&functions, "gtk._gtk._PyGtk_API", NULL); ++#else ++ o = PyCObject_FromVoidPtr(&functions, NULL); ++#endif ++ PyDict_SetItemString(d, "_PyGtk_API", o); + Py_DECREF(o); + + PyGtkDeprecationWarning = PyErr_NewException("gtk.GtkDeprecationWarning", +diff --git a/gtk/pygtk.h b/gtk/pygtk.h +index 573c3b9..e4c680f 100644 +--- a/gtk/pygtk.h ++++ b/gtk/pygtk.h +@@ -60,6 +60,18 @@ struct _PyGtk_FunctionStruct *_PyGtk_API; + + + /* a function to initialise the pygtk functions */ ++ ++/* Python 2.7 introduced the PyCapsule API and deprecated the CObject API */ ++#if PY_VERSION_HEX >= 0x02070000 ++#define init_pygtk() G_STMT_START { \ ++ void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0); \ ++ if (!capsule) { \ ++ return; \ ++ } \ ++ _PyGtk_API = (struct _PyGtk_FunctionStruct*)capsule; \ ++} G_STMT_END ++#else /* PY_VERSION_HEX */ ++/* Python 2.6 and earlier use the CObject API */ + #define init_pygtk() G_STMT_START { \ + PyObject *pygtk = PyImport_ImportModule("gtk"); \ + if (pygtk != NULL) { \ +@@ -79,6 +91,7 @@ struct _PyGtk_FunctionStruct *_PyGtk_API; + return; \ + } \ + } G_STMT_END ++#endif /* PY_VERSION_HEX */ + + #endif +