mirror of
https://aur.archlinux.org/brave-bin.git
synced 2025-09-20 21:49:37 +02:00
Handle missing LICENSE files gracefully
This commit is contained in:
2
.SRCINFO
2
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = brave-bin
|
pkgbase = brave-bin
|
||||||
pkgdesc = Web browser that blocks ads and trackers by default (binary release).
|
pkgdesc = Web browser that blocks ads and trackers by default (binary release).
|
||||||
pkgver = 1.11.97
|
pkgver = 1.11.97
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://brave.com/download
|
url = https://brave.com/download
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
|
4
PKGBUILD
4
PKGBUILD
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
pkgname=brave-bin
|
pkgname=brave-bin
|
||||||
pkgver=1.11.97
|
pkgver=1.11.97
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Web browser that blocks ads and trackers by default (binary release)."
|
pkgdesc="Web browser that blocks ads and trackers by default (binary release)."
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
@@ -49,5 +49,7 @@ package() {
|
|||||||
install -Dm0644 "logo.png" "$pkgdir/usr/share/pixmaps/brave.png"
|
install -Dm0644 "logo.png" "$pkgdir/usr/share/pixmaps/brave.png"
|
||||||
LICENSES_DIR="$pkgdir/usr/share/licenses/$pkgname"
|
LICENSES_DIR="$pkgdir/usr/share/licenses/$pkgname"
|
||||||
mkdir -p "$LICENSES_DIR"
|
mkdir -p "$LICENSES_DIR"
|
||||||
|
if [ -f "$pkgdir/usr/lib/$pkgname/LICENSE" ] && [ -f "$pkgdir/usr/lib/$pkgname/LICENSES.chromium.html" ]; then
|
||||||
mv "$pkgdir/usr/lib/$pkgname/"{LICENSE,LICENSES.chromium.html} "$LICENSES_DIR"
|
mv "$pkgdir/usr/lib/$pkgname/"{LICENSE,LICENSES.chromium.html} "$LICENSES_DIR"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user