diff options
author | Dmytro Meleshko | 2021-05-21 13:06:01 +0300 |
---|---|---|
committer | Dmytro Meleshko | 2021-05-21 13:06:01 +0300 |
commit | 2e8d28dc3a98b9588b2973f8a710fa4530d06d85 (patch) | |
tree | 84f9ff17b96c3ccd5d7379346660cd8e89190438 | |
parent | 7d1c2ae522da2d7def17725586cd63870d2c1380 (diff) | |
download | aur-2e8d28dc3a98b9588b2973f8a710fa4530d06d85.tar.gz |
install the manpage using distutils' mechanism
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | mirage-python3.patch | 12 |
3 files changed, 16 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = mirage-python3 pkgdesc = A fast and simple GTK+ Image Viewer (Python3 port) pkgver = 0.11.1 - pkgrel = 1 + pkgrel = 2 url = https://gitlab.com/thomasross/mirage arch = any license = GPL3 @@ -17,7 +17,7 @@ pkgbase = mirage-python3 source = mirage-python3.patch sha256sums = 2932f7e9e6a1da7785cae2664669eff6f12ca26163afb3d1a3c8e1cc3255e5ec sha256sums = 48b5cf3ff7d50d602ea673a424ffd659ab8813ce7dd1837b574cf39eb732c50a - sha256sums = 3e569cfaf6d2061a3692e33a2c85693d531cdaf1abf74ca0ea0e94a4823178b9 + sha256sums = 2de9c32689e1b0d2c559ea68b5eca4f0b37a53ddd8687b7a9c36b51c11ffee6b pkgname = mirage-python3 @@ -3,7 +3,7 @@ _pkgname=mirage pkgname="${_pkgname}-python3" pkgver=0.11.1 -pkgrel=1 +pkgrel=2 _debian_pkgrel=1build2 pkgdesc="A fast and simple GTK+ Image Viewer (Python3 port)" arch=('any') @@ -17,7 +17,7 @@ source=("${pkgname}-${pkgver}.tar.bz2::https://gitlab.com/thomasross/${_pkgname} "${pkgname}.patch") sha256sums=('2932f7e9e6a1da7785cae2664669eff6f12ca26163afb3d1a3c8e1cc3255e5ec' '48b5cf3ff7d50d602ea673a424ffd659ab8813ce7dd1837b574cf39eb732c50a' - '3e569cfaf6d2061a3692e33a2c85693d531cdaf1abf74ca0ea0e94a4823178b9') + '2de9c32689e1b0d2c559ea68b5eca4f0b37a53ddd8687b7a9c36b51c11ffee6b') prepare() { cd "${_pkgname}-${pkgver}" @@ -27,6 +27,8 @@ prepare() { build() { cd "${_pkgname}-${pkgver}" + cp "${srcdir}/debian/${_pkgname}.1" . + local po_file; for po_file in po/*.po; do local po_file_lang="$(basename "$po_file" .po)" if [[ "$po_file_lang" != "messages" ]]; then @@ -46,5 +48,4 @@ build() { package() { cd "${_pkgname}-${pkgver}" python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -TDm644 "${srcdir}/debian/${_pkgname}.1" "${pkgdir}/usr/share/man/man1" } diff --git a/mirage-python3.patch b/mirage-python3.patch index fdace9cda10a..d24ac7636198 100644 --- a/mirage-python3.patch +++ b/mirage-python3.patch @@ -1,6 +1,6 @@ diff --unified --recursive --text mirage-0.11.1.orig/setup.py mirage-0.11.1/setup.py --- mirage-0.11.1.orig/setup.py 2020-06-07 05:01:58.000000000 +0300 -+++ mirage-0.11.1/setup.py 2021-05-21 10:43:25.456902888 +0300 ++++ mirage-0.11.1/setup.py 2021-05-21 12:59:55.050126183 +0300 @@ -1,71 +1,8 @@ #!/usr/bin/env python3 @@ -73,7 +73,15 @@ diff --unified --recursive --text mirage-0.11.1.orig/setup.py mirage-0.11.1/setu setup( name="Mirage", version="0.11.1", -@@ -120,27 +57,3 @@ +@@ -105,6 +42,7 @@ + ), + ("share/applications", ["mirage.desktop"]), + ("share/pixmaps", ["mirage.png"]), ++ ("share/man/man1", ["mirage.1"]), + ("share/locale/ru/LC_MESSAGES", ["mo/ru/mirage.mo"]), + ("share/locale/pl/LC_MESSAGES", ["mo/pl/mirage.mo"]), + ("share/locale/fr/LC_MESSAGES", ["mo/fr/mirage.mo"]), +@@ -120,27 +58,3 @@ ("share/locale/sv/LC_MESSAGES", ["mo/sv/mirage.mo"]), ], ) |