[Dev] PCR Cleanup

theova theova at bluewin.ch
Fri Apr 17 16:40:27 GMT 2020


Hi,

I tried to do some cleanups on PCR. I've looked at the packages which have unsatisfiable dependencies (expect the openrc/nonsystemd ones).

I checked the following:
- Is there a replacement in other repositories?
- Is it for accessibility? --> Keep it
- Can the package be rebuilt with other dependencies?
- Is the project still active?
- Where there any complaints that the version in PCR is not up to date for the last 1 - 2 years?

The libreoffice calc sheet with detailed comments is attached. The same
information is also attached as csv.

Here are my findings:

Keep as it is:
==============
dasher
screenkey
tahoe-lafs
printrun

Rebuild:
========
bbswitch-lts
zfec
lightspark
grail

Update:
=======
yafaray

Remove:
=======
apache-ant-contrib
litecoin-qt
lightspark-git
pybristol
jbuilder
cairo-compmgr
emacs-lucid
alarm-clock-applet
Gnome-rdp,
discosrv-git
petri-foo
rtorrent-color
nicotine
clang37
llvm37
llvm37-libs
librevpn
librevpn-git
apenwarr-redo
pyrenamer
gtg
python2-pyparser
qtqr
monkeysign
python2-pypump
python2-weberror
fair-coin
kommute
pgl
qtoctave
quackle
qwt-qt4
qwtpolar-qt4
kurso-de-esperanto
python2-carrot
python2-flask-lesscss
coccinella
bristol
python-pycrypto
ttf-gentium-plus
castle-combat (? , see seperate mail)

If you wish patch(es) for the removal packages, please tell me.

For the packages which are to be updated or rebuilt, the patches are attached. More informations can be found in the commit messages.

If you have any questions, need more informations or anything else, please ask!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unsatisfiable-pcr.csv
Type: text/csv
Size: 7639 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20200417/92ca4cdf/attachment-0001.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unsatisfiable-pcr.ods
Type: application/vnd.oasis.opendocument.spreadsheet
Size: 19113 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20200417/92ca4cdf/attachment-0001.ods>
-------------- next part --------------
From f559eecf9d0d5fc914c525b20f42e7e10a319f54 Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Wed, 15 Apr 2020 10:59:53 +0200
Subject: [PATCH 1/8] Update pcr/3proxy to v0.8.13

---
 pcr/3proxy/3proxy.service | 15 +++++++++++++++
 pcr/3proxy/PKGBUILD       | 37 ++++++++++++++++++++++++-------------
 2 files changed, 39 insertions(+), 13 deletions(-)
 create mode 100644 pcr/3proxy/3proxy.service

diff --git a/pcr/3proxy/3proxy.service b/pcr/3proxy/3proxy.service
new file mode 100644
index 000000000..95ee411fe
--- /dev/null
+++ b/pcr/3proxy/3proxy.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=3proxy
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/3proxy /etc/3proxy/3proxy.cfg
+User=threeproxy
+Group=threeproxy
+Restart=on-failure
+PrivateUsers=true
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/pcr/3proxy/PKGBUILD b/pcr/3proxy/PKGBUILD
index 3a71342de..59557e061 100644
--- a/pcr/3proxy/PKGBUILD
+++ b/pcr/3proxy/PKGBUILD
@@ -1,3 +1,4 @@
+# Maintainer (AUR): asm0dey <pavel.finkelshtein+AUR at gmail.com>
 # Contributor (AUR): d0wn
 # Contributor: André Silva <emulatorman at hyperbola.info>
 # Contributor: Márcio Silva <coadde at hyperbola.info>
@@ -6,28 +7,38 @@
 #  - no changes.
 
 pkgname=3proxy
-pkgver=0.8.10
+pkgver=0.8.13
 pkgrel=1
 pkgdesc="A tiny crossplatform proxy server"
 arch=('i686' 'x86_64' 'armv7h')
 url="http://www.3proxy.ru/"
 license=('BSD3')
-depends=()
+depends=('glibc')
+makedepends=('gcc' 'make')
+backup=('etc/3proxy/3proxy.cfg')
 source=("https://github.com/z3APA3A/3proxy/archive/$pkgver.tar.gz"
+        "3proxy.service"
 )
-md5sums=('7394c3373823f15882ad65d8ebcf33b5'
+md5sums=('d9420c56f05fb78bf9043dd8a30c6a1c'
+         '99fbf305116df79fde910402c1132295'
 )
 _prefix=/usr
 _etcdir=/etc/3proxy
 package() {
-	cd "$srcdir/3proxy-$pkgver"
-	cp Makefile.Linux Makefile.Linux~ && sed 's/^\(CFLAGS =\)/\1 -Werror-implicit-function-declaration /' Makefile.Linux~ > Makefile.Linux || return 1
-	make='make -f Makefile.Linux INSTALL=/usr/bin/install'
-	$make prefix="$_prefix" ETCDIR="$_etcdir"
-	$make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
-	( cd ${pkgdir}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
-	rm -f ${pkgdir}${_etcdir}/counters ${pkgdir}${_etcdir}/passwd ${pkgdir}${_etcdir}/bandlimiters
-	install -D -m644 copying ${pkgdir}${_prefix}/share/licenses/$pkgname/copying
-	install -D -m644 cfg/3proxy.cfg.sample ${pkgdir}${_etcdir}/3proxy.cfg.sample
-	install -D -m644 cfg/counters.sample ${pkgdir}${_etcdir}/counters.sample
+    cd "$srcdir/3proxy-$pkgver"
+    cp Makefile.Linux Makefile.Linux~ && sed 's/^\(CFLAGS =\)/\1 -Werror-implicit-function-declaration /' Makefile.Linux~ > Makefile.Linux || return 1
+    make='make -f Makefile.Linux INSTALL=/usr/bin/install'
+    $make prefix="$_prefix" ETCDIR="$_etcdir"
+    $make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
+    ( cd ${pkgdir}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
+    rm -f ${pkgdir}${_etcdir}/counters ${pkgdir}${_etcdir}/passwd ${pkgdir}${_etcdir}/bandlimiters
+    install -D -m644 copying ${pkgdir}${_prefix}/share/licenses/$pkgname/copying
+    install -D -m644 cfg/3proxy.cfg.sample ${pkgdir}${_etcdir}/3proxy.cfg.sample
+    install -D -m644 cfg/counters.sample ${pkgdir}${_etcdir}/counters.sample
+    mkdir -p "$pkgdir/usr/lib/systemd/system/"
+    echo 'u     threeproxy    -              "3proxy user"' | install -Dm644 /dev/stdin "$pkgdir"/usr/lib/sysusers.d/$pkgname.conf
+    install -D -m644 "$srcdir/3proxy.service" "$pkgdir/usr/lib/systemd/system/"
 }
+
+# vim: ts=4 sw=4 et:
+
-- 
2.26.0

-------------- next part --------------
From 0252c11ac1627b22a65d2bde819133ae0b4be873 Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Wed, 15 Apr 2020 11:46:49 +0200
Subject: [PATCH 2/8] Rebuild pcr/bbswitch-lts for lts kernel 5.4.28-1

Successfully build for x86_64, i686
bbswitch-lts is not available for the 'armv7h' architecture
---
 pcr/bbswitch-lts/PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcr/bbswitch-lts/PKGBUILD b/pcr/bbswitch-lts/PKGBUILD
index dca761fd7..875479100 100644
--- a/pcr/bbswitch-lts/PKGBUILD
+++ b/pcr/bbswitch-lts/PKGBUILD
@@ -6,7 +6,7 @@
 # Contributor (Hyperbola): Márcio Silva <coadde at hyperbola.info>
 # Maintainer: Omar Vega Ramos <ovruni at gnu.org.pe>
 
-_basekernel=4.19.97-1
+_basekernel=5.4.28-1
 
 pkgname=bbswitch-lts
 pkgver=0.8
-- 
2.26.0

-------------- next part --------------
From a6c7718e53037b5571e1c42e80a0f6103f04b685 Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Wed, 15 Apr 2020 12:21:46 +0200
Subject: [PATCH 3/8] pcr/grail: Use xorgproto instead of inputproto

Successfully built for all three architectures
---
 pcr/grail/PKGBUILD | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/pcr/grail/PKGBUILD b/pcr/grail/PKGBUILD
index e05381704..981044caa 100644
--- a/pcr/grail/PKGBUILD
+++ b/pcr/grail/PKGBUILD
@@ -3,17 +3,19 @@
 # Contributor (AUR): thn81 <root at scrat>
 
 # parabola changes and rationale:
-#  no changes.
+# - Add armv7h
+# - Use xorgproto instead of inputproto
 
 pkgname=grail
 pkgver=3.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Gesture Recognition And Instantiation Library"
-arch=('i686' 'x86_64' 'armv7h')
+arch=('i686' 'x86_64')
+arch+=('armv7h')
 url="https://launchpad.net/grail"
 license=('GPL')
 depends=('frame>=2.5.0' 'libxi')
-makedepends=('inputproto')
+makedepends=('xorgproto')
 conflicts=('utouch-grail')
 replaces=('utouch-grail')
 options=('!libtool')
-- 
2.26.0

-------------- next part --------------
From afff825c32e689496f7b51a11b6a261d79e1609d Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Fri, 17 Apr 2020 10:17:00 +0200
Subject: [PATCH 4/8] Rebuild pcr/phantomjs for icu 65.1-3

Successfully built for  x86_64, i686, armv7h
---
 pcr/phantomjs/PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcr/phantomjs/PKGBUILD b/pcr/phantomjs/PKGBUILD
index c68031848..89065729b 100644
--- a/pcr/phantomjs/PKGBUILD
+++ b/pcr/phantomjs/PKGBUILD
@@ -7,7 +7,7 @@
 
 pkgname=phantomjs
 pkgver=2.1.1
-pkgrel=16
+pkgrel=17
 pkgdesc='Headless WebKit with JavaScript API'
 url='http://www.phantomjs.org/'
 license=('BSD' 'LGPL' 'MIT')
-- 
2.26.0

-------------- next part --------------
From 7923f03b9ececac022879b0255d06bb5a522b0ec Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Fri, 17 Apr 2020 10:35:07 +0200
Subject: [PATCH 5/8] Rebuild pcr/lightspark for boost-libs 1.72.0-1

- Add include-boostserialization.patch as it was missing
- Successfully buit for x86_64, i686, build failed on armv7h
---
 pcr/lightspark/PKGBUILD                       |  5 +--
 .../include-boostserialization.patch          | 41 +++++++++++++++++++
 2 files changed, 43 insertions(+), 3 deletions(-)
 create mode 100644 pcr/lightspark/include-boostserialization.patch

diff --git a/pcr/lightspark/PKGBUILD b/pcr/lightspark/PKGBUILD
index abadafaa3..2e02f3b67 100644
--- a/pcr/lightspark/PKGBUILD
+++ b/pcr/lightspark/PKGBUILD
@@ -10,7 +10,7 @@
 
 pkgname=lightspark
 pkgver=0.8.2
-pkgrel=2
+pkgrel=3
 pkgdesc="An open source flash player implementation"
 arch=('armv7h' 'i686' 'x86_64')
 url=http://lightspark.github.io/
@@ -18,7 +18,6 @@ license=('LGPL3')
 
 depends=('boost-libs' 'cairo' 'curl' 'desktop-file-utils' 'ffmpeg' 'glew' \
          'glibmm' 'llvm' 'pango' 'rtmpdump' 'sdl2_mixer'                  )
-optdepends=('gnash-gtk: Gnash fallback support')
 makedepends=('cmake' 'nasm' 'boost')
 conflicts=('lightspark-git')
 install=lightspark.install
@@ -27,7 +26,7 @@ sha256sums=('05595a3085bf76ea5c9723f128dcadead5ccf38e177c3a456901ccee3265548a')
 
 # FIXME: FTBS against boost 1.72.0 - see note in prepare()
 source+=(include-boostserialization.patch)
-sha256sums+=('669b021aebb1bd0f4f8f7c029b963c575eaf3cdee1de194144bc8c9b8b61d2e5')
+sha256sums+=('d819ec32bd37c50a731a141e9cbc19b258c803925ec1258803fffad1ef9be8b4')
 
 
 _version_constraint() # (dep_pkgname)
diff --git a/pcr/lightspark/include-boostserialization.patch b/pcr/lightspark/include-boostserialization.patch
new file mode 100644
index 000000000..6e82e19ce
--- /dev/null
+++ b/pcr/lightspark/include-boostserialization.patch
@@ -0,0 +1,41 @@
+From a702f587fe5c130da9186e73a7d5e3a8b697923a Mon Sep 17 00:00:00 2001
+From: orbea <orbea at riseup.net>
+Date: Sat, 21 Dec 2019 13:33:03 -0800
+Subject: [PATCH] Fix build with boost 1.72.0.
+
+Fixes https://github.com/lightspark/lightspark/issues/406.
+---
+ src/scripting/flash/display/flashdisplay.h | 4 ++++
+ src/swf.h                                  | 4 ++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/src/scripting/flash/display/flashdisplay.h b/src/scripting/flash/display/flashdisplay.h
+index 875861655..119986fd4 100644
+--- a/src/scripting/flash/display/flashdisplay.h
++++ b/src/scripting/flash/display/flashdisplay.h
+@@ -20,6 +20,10 @@
+ #ifndef SCRIPTING_FLASH_DISPLAY_FLASHDISPLAY_H
+ #define SCRIPTING_FLASH_DISPLAY_FLASHDISPLAY_H 1
+
++#ifndef BOOST_BIMAP_DISABLE_SERIALIZATION
++#include <boost/serialization/split_member.hpp>
++#endif
++
+ #include <boost/bimap.hpp>
+ #include "compat.h"
+
+diff --git a/src/swf.h b/src/swf.h
+index c2fdd1252..030f8e831 100644
+--- a/src/swf.h
++++ b/src/swf.h
+@@ -20,6 +20,10 @@
+ #ifndef SWF_H
+ #define SWF_H 1
+
++#ifndef BOOST_BIMAP_DISABLE_SERIALIZATION
++#include <boost/serialization/split_member.hpp>
++#endif
++
+ #include "compat.h"
+ #include <fstream>
+ #include <list>
-- 
2.26.0

-------------- next part --------------
From fdd15bcf3ff7001f481497b6470af958b6322121 Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Fri, 17 Apr 2020 11:46:37 +0200
Subject: [PATCH 6/8] Update pcr/mugshot to 0.4.2

- Remove patches
- Make transition to python3
- Built on all three architectures, tested on x86_64
---
 pcr/mugshot/PKGBUILD                   | 42 ++++++++++----------------
 pcr/mugshot/missing_default_face.patch | 28 -----------------
 pcr/mugshot/office-phone.patch         | 35 ---------------------
 3 files changed, 16 insertions(+), 89 deletions(-)
 delete mode 100644 pcr/mugshot/missing_default_face.patch
 delete mode 100644 pcr/mugshot/office-phone.patch

diff --git a/pcr/mugshot/PKGBUILD b/pcr/mugshot/PKGBUILD
index d756a40c1..a46e69f2f 100644
--- a/pcr/mugshot/PKGBUILD
+++ b/pcr/mugshot/PKGBUILD
@@ -1,36 +1,26 @@
 # Maintainer: David P. <megver83 at parabola.nu>
-# Contributor: twa022 <twa022 at gmail.com>
-# Contributor: Somasis <somasis at cryptolab.net>
+# Contributor: Theova
+# Maintainer (Arch): twa022 <twa022 at gmail.com>
+# Contributor (Arch): Somasis <somasis at cryptolab.net>
 
 pkgname=mugshot
-pkgver=0.3.2
-pkgrel=3.parabola2
+pkgver=0.4.2
+pkgrel=1
+pkgrel+=.parabola1
 pkgdesc="Program to update personal user details"
 arch=('any')
-url="https://launchpad.net/mugshot"
+url="https://github.com/bluesabre/mugshot"
 license=('GPL3')
-depends=( 'python2-pexpect' 'python2-dbus' 'python2-cairo' 'python2-gobject' 'accountsservice')
-makedepends=( 'python2-distutils-extra' )
-optdepends=( 'cheese: webcam support'
-             'pidgin: update buddy icon'
-             'libreoffice: update user details')
+depends=('gtk3' 'python-pexpect' 'python-dbus' 'python-cairo' 'python-gobject' 'accountsservice')
+makedepends=('python-distutils-extra' 'intltool')
+optdepends=('cheese: webcam support'
+            'pidgin: update buddy icon'
+            'libreoffice: update user details')
 options=(!emptydirs)
-sha256sums=('ee3debca912c6ddbba613531ab0856496dd247a1f084740ba48cbf42b364c7f0'
-            '0cf536fa2ff25327f100d3fd13009cf56aab72cfd56dceda87579974722a212d'
-            '787848e6ba8eae35d9d6f15918b16ce6227de632106480c36725e348e715326a')
-
-source=("https://launchpad.net/mugshot/${pkgver%.*}/$pkgver/+download/mugshot-${pkgver}.tar.gz"
-        "office-phone.patch"
-        "missing_default_face.patch")
-
-prepare() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    patch -p1 -i "${srcdir}"/office-phone.patch
-    cd "${srcdir}"
-    patch -Np1 -i "${srcdir}"/missing_default_face.patch
-}
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('05698a36494405b5a76be0bf92e89a87fec4e3e6e6168378833de160c9741c84')
 
 package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    python2 setup.py install --root "${pkgdir}"
+  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
+  python setup.py install --root "${pkgdir}" --optimize=1
 }
diff --git a/pcr/mugshot/missing_default_face.patch b/pcr/mugshot/missing_default_face.patch
deleted file mode 100644
index 4502e84f0..000000000
--- a/pcr/mugshot/missing_default_face.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -Naur ./mugshot-0.3.2.old/mugshot/MugshotWindow.py ./mugshot-0.3.2/mugshot/MugshotWindow.py
---- ./mugshot-0.3.2.old/mugshot/MugshotWindow.py	2016-11-06 09:13:47.604768017 -0500
-+++ ./mugshot-0.3.2/mugshot/MugshotWindow.py	2016-11-06 09:14:11.431116827 -0500
-@@ -257,10 +257,11 @@
-             logger.debug('Found profile image: %s' % str(image))
- 
-             if os.path.isfile(face):
--                if os.path.samefile(image, face):
--                    self.updated_image = face
--                else:
--                    self.updated_image = None
-+                if os.path.exists(image):
-+                    if os.path.samefile(image, face):
-+                        self.updated_image = face
-+                    else:
-+                        self.updated_image = None
-                 self.set_user_image(face)
-             elif os.path.isfile(image):
-                 self.updated_image = image
-@@ -612,7 +613,7 @@
-             success = False
- 
-         logger.debug('Updating Office Phone...')
--        
-+
-         command = "%s -w \"%s\" %s" % (chfn, office_phone, username)
-         # Office phone is potentially handled by the -o flag in newer versions of chfn
-         command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username)
diff --git a/pcr/mugshot/office-phone.patch b/pcr/mugshot/office-phone.patch
deleted file mode 100644
index dbca2c59d..000000000
--- a/pcr/mugshot/office-phone.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 8f639e7a29b3bfebbbbd8f520c05637377560bb3 Mon Sep 17 00:00:00 2001
-From: Mike Keen <mkeen.atl at gmail.com>
-Date: Thu, 5 Nov 2015 11:47:30 -0500
-Subject: [PATCH] Support the -o flag if the -w flag fails
- 
----
-mugshot/MugshotWindow.py | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
- 
-diff --git a/mugshot/MugshotWindow.py b/mugshot/MugshotWindow.py
-index 35323be..b557edf 100644
---- a/mugshot/MugshotWindow.py
-+++ b/mugshot/MugshotWindow.py
-@@ -632,11 +632,18 @@ class MugshotWindow(Window):
-             success = False
- 
-         logger.debug('Updating Office Phone...')
-+        
-         command = "%s -w \"%s\" %s" % (chfn, office_phone, username)
-+        # Office phone is potentially handled by the -o flag in newer versions of chfn
-+        command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username)
-         if self.process_terminal_password(command, password):
-             self.office_phone = office_phone
-         else:
--            success = False
-+            # Retry with command2
-+            if self.process_terminal_password(command2, password):
-+                self.office_phone = office_phone
-+            else:
-+                success = False
- 
-         return (success, response)
- 
---
-2.6.2
-- 
2.26.0

-------------- next part --------------
From 81dc6f31981eaef8c3a59eb0dac03a29afd71f1f Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Fri, 17 Apr 2020 13:37:49 +0200
Subject: [PATCH 7/8] Rebuild pcr/zfec with new dependencies

- Remove dependency python2-argparse as 'argparse' is included in python
- Make split package and build python-zfec and python2-zfec
- Make PKGBUILD more similar to AUR
- Remove test as it is deprecated
---
 pcr/zfec/PKGBUILD | 37 +++++++++++++++++++++++--------------
 1 file changed, 23 insertions(+), 14 deletions(-)

diff --git a/pcr/zfec/PKGBUILD b/pcr/zfec/PKGBUILD
index b11962239..30c66b2f7 100644
--- a/pcr/zfec/PKGBUILD
+++ b/pcr/zfec/PKGBUILD
@@ -1,30 +1,39 @@
 # Maintainer (AUR): Nicolas Pouillard <nicolas.pouillard at gmail.com>
 # Contributor (AUR): Peter Simons <simons at cryp.to>
-pkgname=zfec
+
+# Parabola rationals and changes:
+# - Install licenses
+
+pkgbase=zfec
+pkgname=('python2-zfec' 'python-zfec')
 pkgver=1.5.3
 pkgrel=1
+pkgrel+=.parabola1
 pkgdesc="A fast erasure codec which can be used with the command-line, C, Python, or Haskell"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armvh')
 url='https://pypi.python.org/pypi/zfec'
 license=('GPL')
-depends=('python2' 'python2-pyutil' 'python2-argparse')
-makedepends=('python2-setuptools')
+makedepends=('python2-setuptools' 'python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/z/zfec/zfec-${pkgver}.tar.gz")
 sha256sums=('b41bd4b0af9c6b3a78bd6734e1e4511475944164375e6241b53df518a366922b')
 
-build(){
-    cd "$srcdir/zfec-$pkgver"
-    python2 setup.py build
-}
+package_python2-zfec() {
+    depends=('python2-pyutil')
+    replaces=('zfec')
+    conflicts=('python-zfec')
 
-check() {
-    cd "$srcdir/zfec-$pkgver"
-    python2 setup.py test
+    cd "zfec-$pkgver"
+    python2 setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1
+    install -d $pkgdir/usr/share/licenses/$pkgname/
+    install -m644 COPYING* $pkgdir/usr/share/licenses/$pkgname/
 }
 
-package(){
-    cd "$srcdir/zfec-$pkgver"
-    python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+package_python-zfec() {
+    depends=('python-pyutil')
+    conflicts=('python2-zfec')
+
+    cd "zfec-$pkgver"
+    python setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1
     install -d $pkgdir/usr/share/licenses/$pkgname/
     install -m644 COPYING* $pkgdir/usr/share/licenses/$pkgname/
 }
-- 
2.26.0

-------------- next part --------------
From 2be98b83337e3a25ddd56396ae6fd8a173697c03 Mon Sep 17 00:00:00 2001
From: Theo von Arx <theova at member.fsf.org>
Date: Fri, 17 Apr 2020 13:41:38 +0200
Subject: [PATCH 8/8] Move pcr/zfec to pcr/python-zfec

This is a consequence of renaming the according to python packaging
guidelines.
---
 pcr/{zfec => python-zfec}/PKGBUILD | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename pcr/{zfec => python-zfec}/PKGBUILD (100%)

diff --git a/pcr/zfec/PKGBUILD b/pcr/python-zfec/PKGBUILD
similarity index 100%
rename from pcr/zfec/PKGBUILD
rename to pcr/python-zfec/PKGBUILD
-- 
2.26.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20200417/92ca4cdf/attachment-0001.sig>


More information about the Dev mailing list