Date: Tuesday, July 12, 2016 @ 18:41:47 Author: bgyorgy Revision: 182697
upgpkg: urlwatch 2.3-1 Update to new version Modified: urlwatch/trunk/PKGBUILD Deleted: urlwatch/trunk/fix-install.patch -------------------+ PKGBUILD | 14 +++----------- fix-install.patch | 47 ----------------------------------------------- 2 files changed, 3 insertions(+), 58 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-07-12 17:25:10 UTC (rev 182696) +++ PKGBUILD 2016-07-12 18:41:47 UTC (rev 182697) @@ -4,7 +4,7 @@ # Contributor: Allan McRae <al...@archlinux.org> pkgname=urlwatch -pkgver=2.2 +pkgver=2.3 pkgrel=1 pkgdesc="A tool for monitoring webpages for updates" arch=('any') @@ -11,17 +11,9 @@ url="http://thp.io/2008/urlwatch/" license=('BSD') depends=('python-keyring' 'python-minidb' 'python-requests' 'python-yaml') -source=("http://thp.io/2008/urlwatch/$pkgname-$pkgver.tar.gz" - "fix-install.patch") -md5sums=('9a3af570ad0c696987eb0b4dc39a930d' - '6878aaa0c73e039fb48a2eb50b427617') +source=("https://github.com/thp/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('e628a0e6ec567f517ef25056911b698d7b04091f96b3e2452d0a8dc4fee3f108') -prepare() { - cd $pkgname-$pkgver - # Fix installation - patch -RNp1 -i ../fix-install.patch -} - build() { cd $pkgname-$pkgver python3 setup.py build Deleted: fix-install.patch =================================================================== --- fix-install.patch 2016-07-12 17:25:10 UTC (rev 182696) +++ fix-install.patch 2016-07-12 18:41:47 UTC (rev 182697) @@ -1,47 +0,0 @@ -From 50356a779ff40cd914408e7e9a34c54b08ef4c26 Mon Sep 17 00:00:00 2001 -From: Thomas Perl <m...@thp.io> -Date: Sat, 20 Feb 2016 11:37:38 +0100 -Subject: [PATCH] Allow running setup.py from non-source directory (Fixes #52) - ---- - setup.py | 13 ++++++++----- - 1 file changed, 8 insertions(+), 5 deletions(-) - -diff --git a/setup.py b/setup.py -index 5733064..947a7c8 100644 ---- a/setup.py -+++ b/setup.py -@@ -10,6 +10,7 @@ - - PACKAGE_NAME = 'urlwatch' - DEPENDENCIES = ['minidb', 'PyYAML', 'requests'] -+HERE = os.path.dirname(__file__) - - # Assumptions: - # 1. Package name equals main script file name (and only one script) -@@ -17,7 +18,7 @@ - # 3. Data files are in "share/", will be installed in $(PREFIX)/share - # 4. Packages are in "lib/", no modules - --main_py = open('lib/%s/__init__.py' % PACKAGE_NAME).read() -+main_py = open(os.path.join(HERE, 'lib', PACKAGE_NAME, '__init__.py')).read() - m = dict(re.findall("\n__([a-z]+)__ = '([^']+)'", main_py)) - docs = re.findall('"""(.*?)"""', main_py, re.DOTALL) - -@@ -26,10 +27,12 @@ - m['description'], m['long_description'] = docs[0].strip().split('\n\n', 1) - m['download_url'] = m['url'] + PACKAGE_NAME + '-' + m['version'] + '.tar.gz' - --m['scripts'] = [PACKAGE_NAME] --m['package_dir'] = {'': 'lib'} --m['packages'] = ['.'.join(dirname.split(os.sep)[1:]) for dirname, _, files in os.walk('lib') if '__init__.py' in files] --m['data_files'] = [(dirname, [os.path.join(dirname, fn) for fn in files]) for dirname, _, files in os.walk('share')] -+m['scripts'] = [os.path.join(HERE, PACKAGE_NAME)] -+m['package_dir'] = {'': os.path.join(HERE, 'lib')} -+m['packages'] = ['.'.join(dirname[len(HERE)+1:].split(os.sep)[1:]) -+ for dirname, _, files in os.walk(os.path.join(HERE, 'lib')) if '__init__.py' in files] -+m['data_files'] = [(dirname[len(HERE)+1:], [os.path.join(dirname[len(HERE)+1:], fn) for fn in files]) -+ for dirname, _, files in os.walk(os.path.join(HERE, 'share')) if files] - m['install_requires'] = DEPENDENCIES - - setup(**m)