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

Felix Yan felixonmars at archlinux.org
Mon Jan 18 15:24:45 UTC 2021


    Date: Monday, January 18, 2021 @ 15:24:45
  Author: felixonmars
Revision: 823505

Include man page in package (FS#62891)

Modified:
  hledger-web/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-18 15:20:09 UTC (rev 823504)
+++ PKGBUILD	2021-01-18 15:24:45 UTC (rev 823505)
@@ -23,9 +23,9 @@
 sha512sums=('9527d54bf83a1b5a791542c13d9f07f5d14f6e0d4c8d2c718bac73c4cc8a58bfa7b8a8aa6639a060079a8d9a29ac9616f268fc93bfce37ee3301b2eb50283d7f')
 
 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 \
+        --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir="$pkgname" --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
             -f-dev -f-library-only -fthreaded
     runhaskell Setup build $MAKEFLAGS
@@ -41,9 +41,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-web.1 -t "$pkgdir"/usr/share/man/man1/
 }



More information about the arch-commits mailing list