Date: Tuesday, January 31, 2023 @ 21:22:42
Author: felixonmars
Revision: 1391575
archrelease: copy trunk to community-any
Added:
python-xcffib/repos/community-any/PKGBUILD
(from rev 1391574, python-xcffib/trunk/PKGBUILD)
Deleted:
python-xcffib/repos/community-any/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 38 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 21:22:26 UTC (rev 1391574)
+++ PKGBUILD 2023-01-31 21:22:42 UTC (rev 1391575)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Roger Duran <[email protected]>
-
-pkgname=python-xcffib
-pkgver=1.1.0
-pkgrel=1
-pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
-arch=('any')
-url="https://pypi.python.org/pypi/xcffib"
-license=('Apache')
-depends=('python-cffi' 'libxcb')
-makedepends=('python-setuptools' 'haskell-xcffib')
-checkdepends=('python-pytest' 'xorg-server-xvfb' 'xorg-xeyes')
-source=("https://github.com/tych0/xcffib/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('7aed8fb876d23228070bf2253245aeae5754404e8a47513cb3545ff7b7738bac39a740d656669e09175d1a684b0c69c88a91a08650a21733de926a3f07da6d62')
-
-build() {
- cd xcffib-$pkgver
- make xcffib GEN=xcffibgen CABAL=true
- python setup.py build
-}
-
-check() {
- cd xcffib-$pkgver
- xvfb-run pytest
-}
-
-package() {
- cd xcffib-$pkgver
- python setup.py install --root="$pkgdir/" --optimize=1
-}
Copied: python-xcffib/repos/community-any/PKGBUILD (from rev 1391574,
python-xcffib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-31 21:22:42 UTC (rev 1391575)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Roger Duran <[email protected]>
+
+pkgname=python-xcffib
+pkgver=1.2.0
+_commit=37210fcbf114cf4c77c95faf15f48b27fc094e62
+pkgrel=1
+pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
+arch=('any')
+url="https://pypi.python.org/pypi/xcffib"
+license=('Apache')
+depends=('python-cffi' 'libxcb')
+makedepends=('git' 'python-setuptools' 'haskell-xcffib')
+checkdepends=('python-pytest' 'xorg-server-xvfb' 'xorg-xeyes')
+source=("git+https://github.com/tych0/xcffib.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd xcffib
+ # Remove redundant six import
+ git cherry-pick -n 96eb6d4a6fa0b1404bf4ba072d0bb8f9e58af306
+}
+
+build() {
+ cd xcffib
+ make xcffib GEN=xcffibgen CABAL=true
+ python setup.py build
+}
+
+check() {
+ cd xcffib
+ xvfb-run pytest
+}
+
+package() {
+ cd xcffib
+ python setup.py install --root="$pkgdir/" --optimize=1
+}