Created
March 29, 2020 15:04
-
-
Save founderio/4ae35c4e6e1062095576ce6e8982d570 to your computer and use it in GitHub Desktop.
Patch for https://aur.archlinux.org/packages/oh-brother-git/ to use python3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e5be69b215053c296425e2d248e93ab007681e97 Mon Sep 17 00:00:00 2001 | |
From: Oliver Kahrmann <oliver.kahrmann@gmail.com> | |
Date: Sun, 29 Mar 2020 17:01:48 +0200 | |
Subject: [PATCH] Update to python3 dependencies | |
--- | |
PKGBUILD | 12 +++++++----- | |
1 file changed, 7 insertions(+), 5 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index a963967..e52102d 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,13 +1,15 @@ | |
# Maintainer: Dan McCurry <dan.mccurry at linux dot com> | |
+# Contributor: Oliver Kahrmann <oliver.kahrmann@gmail.com> | |
+ | |
pkgname=oh-brother-git | |
-pkgver=r22.6c73096 | |
-pkgrel=1 | |
+pkgver=r39.e667fe7 | |
+pkgrel=2 | |
pkgdesc="A simple cross-platform utility written in Python which can update Brother printer firmwares." | |
arch=('any') | |
url="https://github.com/CauldronDevelopmentLLC/oh-brother" | |
license=('GPL2') | |
makedepends=('git') | |
-depends=('python2-pyasn1' 'python2-pysnmp') | |
+depends=('python-pyasn1' 'python-pysnmp' 'python-future') | |
provides=("${pkgname%-git}") | |
conflicts=("${pkgname%-git}") | |
source=("${pkgname%-git}::git+https://github.com/CauldronDevelopmentLLC/oh-brother.git") | |
@@ -20,11 +22,11 @@ pkgver() { | |
prepare() { | |
cd "$srcdir/${pkgname%-git}" | |
- sed -i '1 s/python/python2/' oh-brother.py | |
+ sed -i '1 s/python/python3/' oh-brother.py | |
} | |
package() { | |
cd "$srcdir/${pkgname%-git}" | |
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" | |
- install -Dm755 "oh-brother.py" "${pkgdir}/usr/bin/oh-brother.py" | |
+ install -Dm755 "oh-brother.py" "${pkgdir}/usr/bin/oh-brother" | |
} | |
-- | |
2.26.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment