Date: Sunday, February 20, 2022 @ 21:04:00
  Author: freswa
Revision: 437821

fix license information

implements FS#71331

Modified:
  binutils/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-02-20 20:29:49 UTC (rev 437820)
+++ PKGBUILD    2022-02-20 21:04:00 UTC (rev 437821)
@@ -1,4 +1,6 @@
-# Maintainer:  BartÅ‚omiej Piotrowski <[email protected]>
+# Maintainer: Giancarlo Razzolini <[email protected]>
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor:  BartÅ‚omiej Piotrowski <[email protected]>
 # Contributor: Allan McRae <[email protected]>
 
 # toolchain build order: 
linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
@@ -9,7 +11,7 @@
 pkgdesc='A set of programs to assemble and manipulate binary and object files'
 arch=(x86_64)
 url='https://www.gnu.org/software/binutils/'
-license=(GPL)
+license=('GPL3' 'GPL' 'FDL1.3' 'custom:FSFAP')
 groups=(base-devel)
 depends=(glibc zlib libelf)
 checkdepends=(dejagnu debuginfod bc)
@@ -73,6 +75,11 @@
     --with-system-zlib
 
   make -O tooldir=/usr
+
+  # Extract the FSF All Permissive License
+  # 
<https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html>
+  # used for some linker scripts.
+  tail -n 5 "${srcdir}"/binutils-${pkgver}/ld/scripttempl/README > FSFAP
 }
 
 check() {
@@ -99,4 +106,7 @@
   rm -f "$pkgdir"/usr/lib/lib{bfd,opcodes}.so
   echo 'INPUT( /usr/lib/libbfd.a -liberty -lz -ldl )' > 
"$pkgdir/usr/lib/libbfd.so"
   echo 'INPUT( /usr/lib/libopcodes.a -lbfd )' > "$pkgdir/usr/lib/libopcodes.so"
+
+  # install FSF All Permissive License
+  install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname}/ FSFAP
 }

Reply via email to