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

Felix Yan felixonmars at archlinux.org
Sun Jan 17 17:29:33 UTC 2021


    Date: Sunday, January 17, 2021 @ 17:29:32
  Author: felixonmars
Revision: 821451

Include man page in package (FS#62891)

Modified:
  hledger/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-17 17:29:22 UTC (rev 821450)
+++ PKGBUILD	2021-01-17 17:29:32 UTC (rev 821451)
@@ -20,7 +20,7 @@
 sha512sums=('a13d4caf111810bcde7547272fdab25519f5f59cd909f88e8ceb65a20d56b54420543113e260041e598b60d4f11a13364b315697fdf350da9daf610b59d639dc')
 
 build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
+    cd $pkgname-$pkgver
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
@@ -38,9 +38,11 @@
 }
 
 package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
-    install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
-    runhaskell Setup copy --destdir="${pkgdir}"
+    cd $pkgname-$pkgver
+    install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+    install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+    runhaskell Setup copy --destdir="$pkgdir"
     rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+
+    install -Dm644 hledger.1 -t "$pkgdir"/usr/share/man/man1/
 }



More information about the arch-commits mailing list