makedeb


brave-browser-installer 1.0.1-3


Installs the Brave Browser repository

Click here to go back to the commit logs for brave-browser-installer.

Commit:


Hash: 344f9a778943fb0d4d035e3edd4533626eb011cd

Message: Since the brave-browser package was managing files that this package was managing (conflicts), change setup to happen in a script

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 1cc1ceb..38d2ec6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,13 +4,7 @@ postinst = brave-browser-installer.postinst
 pkgbase = brave-browser-installer
 pkgdesc = Installs the Brave Browser repository
 pkgrel = 2
-pkgver = 1.0.0
+pkgver = 1.0.1
 arch = amd64
-backup = /usr/share/keyrings/brave-browser-archive-keyring.gpg
-backup = /etc/apt/sources.list.d/brave-browser-release.list
 depends = apt-transport-https
 depends = curl
-source = https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
-source = brave-browser-release.list
-sha256sums = 3cc5fd084c3c3fb9d03bd6de88c32e78822b7d84f0c7ce95d7933c57f3b85648
-sha256sums = SKIP
diff --git a/.gitignore b/.gitignore
index 24f0b7e..8dfd0ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
 *.deb
-*.gpg
 pkg/
 src/
diff --git a/PKGBUILD b/PKGBUILD
index 17f8429..ec039e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,16 @@
 # Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
-# vim: set sw=4 expandtab:
+# vim: set sw=2 expandtab:
 pkgname=brave-browser-installer
-pkgver=1.0.0
+pkgver=1.0.1
 pkgrel=2
 pkgdesc='Installs the Brave Browser repository'
 arch=(amd64)
-backup=(
-  "/usr/share/keyrings/brave-browser-archive-keyring.gpg"
-  "/etc/apt/sources.list.d/brave-browser-release.list"
-)
 depends=(apt-transport-https curl)
-source=(
-  "https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg"
-  "brave-browser-release.list"
-)
-sha256sums=(
-  "3cc5fd084c3c3fb9d03bd6de88c32e78822b7d84f0c7ce95d7933c57f3b85648"
-  "SKIP"
-)
+source=()
+sha256sums=()
 postinst=brave-browser-installer.postinst
 
 
 package() {
-  install -D brave-browser-archive-keyring.gpg "$pkgdir/usr/share/keyrings/brave-browser-archive-keyring.gpg"
-  install -D brave-browser-release.list "$pkgdir/etc/apt/sources.list.d/brave-browser-release.list"
+  true
 }
diff --git a/brave-browser-installer.postinst b/brave-browser-installer.postinst
index 5a4c973..c19159c 100755
--- a/brave-browser-installer.postinst
+++ b/brave-browser-installer.postinst
@@ -1,4 +1,18 @@
 #!/usr/bin/env bash
 
-apt-get update
-apt-get install -y brave-browser
+curl -sSL "https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg" \
+  > "/usr/share/keyrings/brave-browser-archive-keyring.gpg"
+
+cat << EOF > "/etc/apt/sources.list.d/brave-browser-release.list"
+deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
+EOF
+
+cat << EOF
+--------------------------------------------------------------------------------
+The repository for Brave Browser has been installed on your system. In order to
+finish installation, run the following commands:
+
+\$ sudo apt update
+\$ sudo apt install brave-browser
+--------------------------------------------------------------------------------
+EOF
diff --git a/brave-browser-release.list b/brave-browser-release.list
deleted file mode 100644
index be95ed1..0000000
--- a/brave-browser-release.list
+++ /dev/null
@@ -1 +0,0 @@
-deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main