Date: Saturday, February 4, 2023 @ 22:21:12
Author: spupykin
Revision: 1392452
archrelease: copy trunk to community-any
Added:
arandr/repos/community-any/PKGBUILD
(from rev 1392451, arandr/trunk/PKGBUILD)
arandr/repos/community-any/dont-compress-man-pages.patch
(from rev 1392451, arandr/trunk/dont-compress-man-pages.patch)
Deleted:
arandr/repos/community-any/PKGBUILD
arandr/repos/community-any/dont-compress-man-pages.patch
-------------------------------+
PKGBUILD | 54 +++++++++---------
dont-compress-man-pages.patch | 114 ++++++++++++++++++++--------------------
2 files changed, 84 insertions(+), 84 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-04 22:20:27 UTC (rev 1392451)
+++ PKGBUILD 2023-02-04 22:21:12 UTC (rev 1392452)
@@ -1,27 +0,0 @@
-# Maintainer: Sergej Pupykin <[email protected]>
-# Maintainer: Clément DEMOULINS <[email protected]>
-
-pkgname=arandr
-pkgver=0.1.10
-pkgrel=7
-pkgdesc="Provide a simple visual front end for XRandR 1.2."
-arch=('any')
-url="https://christian.amsuess.com/tools/arandr/"
-license=('GPL3')
-depends=('gtk3' 'python-cairo' 'python-gobject' 'xorg-xrandr')
-makedepends=('python-docutils')
-source=(https://christian.amsuess.com/tools/$pkgname/files/${pkgname}-$pkgver.tar.gz
- dont-compress-man-pages.patch)
-sha256sums=('dbc8ac890da78e9c0ba3403a8932a925813bb8d62265276894e780ba2905b88c'
- 'eb954b763bd2dd7f98ff04a4d45e59db9f8a16cc7384b47ffed733781057ab37')
-
-prepare() {
- cd "$srcdir"/$pkgname-$pkgver
- # Don't create gzip files with a build date in them which makes it
unreproducible
- patch -Np1 -i ${srcdir}/dont-compress-man-pages.patch
-}
-
-package() {
- cd "$srcdir"/$pkgname-$pkgver
- python setup.py install --prefix=/usr --root="$pkgdir"
-}
Copied: arandr/repos/community-any/PKGBUILD (from rev 1392451,
arandr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-04 22:21:12 UTC (rev 1392452)
@@ -0,0 +1,27 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Maintainer: Clément DEMOULINS <[email protected]>
+
+pkgname=arandr
+pkgver=0.1.11
+pkgrel=1
+pkgdesc="Provide a simple visual front end for XRandR 1.2."
+arch=('any')
+url="https://christian.amsuess.com/tools/arandr/"
+license=('GPL3')
+depends=('gtk3' 'python-cairo' 'python-gobject' 'xorg-xrandr')
+makedepends=('python-docutils')
+source=(https://christian.amsuess.com/tools/$pkgname/files/${pkgname}-$pkgver.tar.gz
+ dont-compress-man-pages.patch)
+sha256sums=('e4cbbe3698bb812b395770870174be0094bbaeb391105a811f95f42eb182ae02'
+ 'eb954b763bd2dd7f98ff04a4d45e59db9f8a16cc7384b47ffed733781057ab37')
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ # Don't create gzip files with a build date in them which makes it
unreproducible
+ patch -Np1 -i ${srcdir}/dont-compress-man-pages.patch
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir"
+}
Deleted: dont-compress-man-pages.patch
===================================================================
--- dont-compress-man-pages.patch 2023-02-04 22:20:27 UTC (rev 1392451)
+++ dont-compress-man-pages.patch 2023-02-04 22:21:12 UTC (rev 1392452)
@@ -1,57 +0,0 @@
-diff -aur arandr-0.1.10/setup.py arandr-0.1.10.new/setup.py
---- arandr-0.1.10/setup.py 2019-04-15 14:49:33.000000000 +0200
-+++ arandr-0.1.10.new/setup.py 2021-05-17 21:10:30.598046190 +0200
-@@ -20,7 +20,6 @@
- import operator
- import subprocess
- import glob
--import gzip
- import datetime
-
- import docutils.core
-@@ -100,20 +99,19 @@
- def run(self):
- self.mkpath('build')
-
-- for (sourcefile, gzfile) in [
-- ('data/arandr.1.txt', os.path.join('build', 'arandr.1.gz')),
-- ('data/unxrandr.1.txt', os.path.join('build',
'unxrandr.1.gz')),
-+ for (sourcefile, manfile) in [
-+ ('data/arandr.1.txt', os.path.join('build', 'arandr.1')),
-+ ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1')),
- ]:
-
-- if newer(sourcefile, gzfile):
-+ if newer(sourcefile, manfile):
- rst_source = open(sourcefile).read()
- manpage = docutils.core.publish_string(rst_source,
writer=docutils.writers.manpage.Writer())
-- info('compressing man page to %s', gzfile)
-
- if not self.dry_run:
-- compressed = gzip.open(gzfile, 'w', 9)
-- compressed.write(manpage)
-- compressed.close()
-+ fp = open(manfile, 'wb')
-+ fp.write(manpage)
-+ fp.close()
-
- class update_translator_credits(NoOptionCommand):
- description = 'Examine the git history to produce an updated metadata
file.'
-@@ -218,7 +216,7 @@
- def run(self):
- if self.all:
- dirs = ['build/locale']
-- files = ['build/arandr.1.gz', 'build/unxrandr.1.gz']
-+ files = ['build/arandr.1', 'build/unxrandr.1']
- for directory in dirs:
- if os.path.exists(directory):
- remove_tree(directory, dry_run=self.dry_run)
-@@ -259,7 +257,7 @@
- },
- data_files = [
- ('share/applications', ['data/arandr.desktop']), # FIXME: use
desktop-file-install?
-- ('share/man/man1', ['build/arandr.1.gz', 'build/unxrandr.1.gz']),
-+ ('share/man/man1', ['build/arandr.1', 'build/unxrandr.1']),
- ],
- scripts = ['arandr', 'unxrandr'],
- )
Copied: arandr/repos/community-any/dont-compress-man-pages.patch (from rev
1392451, arandr/trunk/dont-compress-man-pages.patch)
===================================================================
--- dont-compress-man-pages.patch (rev 0)
+++ dont-compress-man-pages.patch 2023-02-04 22:21:12 UTC (rev 1392452)
@@ -0,0 +1,57 @@
+diff -aur arandr-0.1.10/setup.py arandr-0.1.10.new/setup.py
+--- arandr-0.1.10/setup.py 2019-04-15 14:49:33.000000000 +0200
++++ arandr-0.1.10.new/setup.py 2021-05-17 21:10:30.598046190 +0200
+@@ -20,7 +20,6 @@
+ import operator
+ import subprocess
+ import glob
+-import gzip
+ import datetime
+
+ import docutils.core
+@@ -100,20 +99,19 @@
+ def run(self):
+ self.mkpath('build')
+
+- for (sourcefile, gzfile) in [
+- ('data/arandr.1.txt', os.path.join('build', 'arandr.1.gz')),
+- ('data/unxrandr.1.txt', os.path.join('build',
'unxrandr.1.gz')),
++ for (sourcefile, manfile) in [
++ ('data/arandr.1.txt', os.path.join('build', 'arandr.1')),
++ ('data/unxrandr.1.txt', os.path.join('build', 'unxrandr.1')),
+ ]:
+
+- if newer(sourcefile, gzfile):
++ if newer(sourcefile, manfile):
+ rst_source = open(sourcefile).read()
+ manpage = docutils.core.publish_string(rst_source,
writer=docutils.writers.manpage.Writer())
+- info('compressing man page to %s', gzfile)
+
+ if not self.dry_run:
+- compressed = gzip.open(gzfile, 'w', 9)
+- compressed.write(manpage)
+- compressed.close()
++ fp = open(manfile, 'wb')
++ fp.write(manpage)
++ fp.close()
+
+ class update_translator_credits(NoOptionCommand):
+ description = 'Examine the git history to produce an updated metadata
file.'
+@@ -218,7 +216,7 @@
+ def run(self):
+ if self.all:
+ dirs = ['build/locale']
+- files = ['build/arandr.1.gz', 'build/unxrandr.1.gz']
++ files = ['build/arandr.1', 'build/unxrandr.1']
+ for directory in dirs:
+ if os.path.exists(directory):
+ remove_tree(directory, dry_run=self.dry_run)
+@@ -259,7 +257,7 @@
+ },
+ data_files = [
+ ('share/applications', ['data/arandr.desktop']), # FIXME: use
desktop-file-install?
+- ('share/man/man1', ['build/arandr.1.gz', 'build/unxrandr.1.gz']),
++ ('share/man/man1', ['build/arandr.1', 'build/unxrandr.1']),
+ ],
+ scripts = ['arandr', 'unxrandr'],
+ )