Adapt scripts to use the new licensing scheme

This commit is contained in:
Andrea Mazzoleni 2026-04-02 16:10:26 +02:00
parent 60269a1236
commit b3398df529
6 changed files with 13 additions and 10 deletions

View file

@ -26,5 +26,5 @@ package() {
install -Dm644 snapraid.conf.example "$pkgdir/usr/share/doc/$pkgname/snapraid.conf.example"
# Arch Policy: License must also be in the license directory
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 LICENSES/GPL-3.0 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

View file

@ -99,8 +99,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYING AUTHORS HISTORY README snapraid.conf.example \
AUTHORS HISTORY README snapraid.conf.example \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSES/GPL-3.0 $PKG/usr/doc/$PRGNAM-$VERSION/COPYING
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -29,7 +29,7 @@ rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%files
%license COPYING
%license LICENSES/GPL-3.0
%doc AUTHORS HISTORY README @PACKAGE@.conf.example
%{_bindir}/@PACKAGE@
%{_mandir}/man1/@PACKAGE@.1*