From fdfd39d3bf645c1b9783f2a7e2a519f4d4fe91c2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 26 Jun 2019 09:38:24 +0200 Subject: xraylarch: 0.9.44-3 -> 0.9.45-1 --- xraylarch/PKGBUILD | 29 +++++++++-------------------- xraylarch/remove-icons.patch | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 xraylarch/remove-icons.patch (limited to 'xraylarch') diff --git a/xraylarch/PKGBUILD b/xraylarch/PKGBUILD index a58a0cce..3ff5764d 100755 --- a/xraylarch/PKGBUILD +++ b/xraylarch/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Erich Eckner pkgname=xraylarch -pkgver=0.9.44 -pkgrel=3 +pkgver=0.9.45 +pkgrel=1 pkgdesc="Data Analysis Tools for X-ray Spectroscopy" arch=('i686' 'pentium4' 'x86_64') url="http://xraypy.github.io/xraylarch/" @@ -54,28 +54,17 @@ backup=() options=() source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/xraypy/${pkgname}/archive/${pkgver}.tar.gz" + 'remove-icons.patch' +) +sha512sums=( + '227e0ccbf599cf9ef3ba69bb48005202e3166f97c5d24a99883ad2a94c5013ab60ac24494b87514a6008899209532c305829506c0d01dc5b3eaf60a74f2087ab' + '8a2cff40315c38cb17a6841731704d5a375d25a13949227ad914abfdd46aef55dcc24e375176119634df773ece63422a2dc64fc843b6bae40232ffa2a5bb80ab' ) -sha512sums=('f6d7370cb598667c5fac46ea9f62e6e80ee2e559c02688a3fc6e7e2fb97be2ccba589137d2a7c3c96e7cd267f719056208359c60061baaf197dbcf816727fc83') prepare() { - sed -i ' - s/^\s*setup(/_setup = \0/ - s/^\(\s*dest\s*=\s*\)\(\S.*\)$/\1_setup.get_command_obj('"'"'install'"'"').root + os.path.abspath(\2)/ - /subprocess\.check_call/ { N; d; } - ' "${pkgname}-${pkgver}/setup.py" - - if [ "${CARCH}" = 'i686' ] || [ "${CARCH}" = 'pentium4' ]; then - sed -i ' - /^\s*compiled_exes\s*=\s*(/,/)/ { - s/(.*/(/ - t - s/.*)/)/ - t - d - } - ' "${pkgname}-${pkgver}/setup.py" - fi + cd "${pkgname}-${pkgver}" + patch -p1 -i "../remove-icons.patch" } diff --git a/xraylarch/remove-icons.patch b/xraylarch/remove-icons.patch new file mode 100644 index 00000000..029e3775 --- /dev/null +++ b/xraylarch/remove-icons.patch @@ -0,0 +1,14 @@ +--- a/setup.py 2019-06-26 09:33:08.364860066 +0200 ++++ b/setup.py 2019-06-26 09:35:48.971969563 +0200 +@@ -175,11 +175,6 @@ + 'Topic :: Scientific/Engineering'], + ) + +-# create desktop icons +-if INSTALL or DEVELOP: +- subprocess.check_call((pjoin(sys.exec_prefix, pyexe), +- pjoin(sys.exec_prefix, bindir, larchbin), '-m')) +- + if len(missing) > 0: + dl = "#%s#" % ("="*75) + msg = """%s -- cgit v1.2.3-54-g00ecf