[arch-commits] Commit in scons/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Aug 2 19:36:15 UTC 2021


    Date: Monday, August 2, 2021 @ 19:36:12
  Author: dvzrv
Revision: 421062

upgpkg: scons 4.2.0-1: Upgrade to 4.2.0.

Copy man pages to pwd after build, as that is where they are picked up by the install-data target.
Specify install-data more clearly to be the man1 location and remove additional modification.

Modified:
  scons/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-02 19:34:25 UTC (rev 421061)
+++ PKGBUILD	2021-08-02 19:36:12 UTC (rev 421062)
@@ -5,8 +5,8 @@
 # Contributor: Brice Carpentier <brice at dlfp.org>
 
 pkgname=scons
-pkgver=4.1.0
-pkgrel=2
+pkgver=4.2.0
+pkgrel=1
 pkgdesc="Extensible Python-based build utility"
 arch=('any')
 url="https://scons.org"
@@ -16,8 +16,8 @@
 'rst2pdf')
 checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('f79b86bb09783767b3872cfb8efb665372714a604af2aaf3adc66eee63d3afe27bc6b2aab83813743c83f71c81c800d42842e916501787ba402ce2726dda9b44')
-b2sums=('ede3d47a1ec652b9248681e26738073e9d01daab7ffeccc58f0fcadb79661e30edb9a35a511518e4a58459243acb027afd8fa5849b0f9e4bae451055f7b1a062')
+sha512sums=('138573f7203b52fad0527d8d88ceabe182273eff7e4b74125e0d7eda51c44408b07e2c702ee63214519392101d8bbb30013e6d34000eaeb530a816c17396de97')
+b2sums=('c298152db937810ab73afc304a9dc480c185ef0d6e86be5ec7f2022a7d1ed4d3df6ecc18148c3143d4e76a7ea0e50790db1224e66db68bace0759daba7f36a91')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
@@ -28,6 +28,8 @@
 build() {
   cd "${pkgname}-${pkgver}"
   python scripts/scons.py --include-dir= -j1
+  # copy man pages into place, so that install-data may pick them up
+  cp -av build/doc/man/* .
 }
 
 check() {
@@ -41,13 +43,9 @@
   python setup.py install --prefix=/usr \
                           --skip-build \
                           --optimize=1 \
-                          --install-data=/usr/share \
+                          --install-data=/usr/share/man/man1/ \
                           --root="$pkgdir"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
   install -vDm 644 {{CHANGES,RELEASE}.txt,README.rst} \
     -t "${pkgdir}/usr/share/doc/${pkgname}/"
-
-  #move man pages to correct location from /usr/share/
-  install -vdm 755 "${pkgdir}/usr/share/man/man1"
-  mv -v "${pkgdir}/usr/share/"*.1 "${pkgdir}/usr/share/man/man1"
 }



More information about the arch-commits mailing list