Use COPYING file for license

ledoian
Bartłomiej Piotrowski 7 years ago
parent cf6095fac6
commit 04b73625b2

@ -30,6 +30,7 @@ build() {
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
@ -45,8 +46,4 @@ package() {
# 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"
}

Loading…
Cancel
Save