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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Feb 24 18:39:00 UTC 2018


    Date: Saturday, February 24, 2018 @ 18:39:00
  Author: bpiotrowski
Revision: 317482

Use COPYING file for license

Modified:
  ncurses/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-24 16:08:44 UTC (rev 317481)
+++ PKGBUILD	2018-02-24 18:39:00 UTC (rev 317482)
@@ -31,6 +31,7 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
   # fool packages looking to link to non-wide-character ncurses libraries
   for lib in ncurses ncurses++ form panel menu; do
@@ -46,8 +47,4 @@
   # some packages look for -lcurses during build
   echo 'INPUT(-lncursesw)' > "$pkgdir/usr/lib/libcursesw.so"
   ln -s libncurses.so "$pkgdir/usr/lib/libcurses.so"
-
-  # install license, rip it from the readme
-  install -d "$pkgdir/usr/share/licenses/$pkgname"
-  grep -B 100 '$Id' README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list