summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Guilloux2019-10-07 21:40:13 +0200
committerNicolas Guilloux2019-10-07 21:40:13 +0200
commitb44b3c051e4d493c0e8b6d6de4529f5ade7c2eb9 (patch)
tree77fe529d30d3040df59256b259aaf58adc113417
downloadaur-b44b3c051e4d493c0e8b6d6de4529f5ade7c2eb9.tar.gz
Version 1.1.1
-rw-r--r--.SRCINFO29
-rw-r--r--.gitignore3
-rw-r--r--Makefile23
-rw-r--r--PKGBUILD63
4 files changed, 118 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a8e09780967
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = kget-integrator-browsers
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = https://github.com/NicolasGuilloux/KGet-Integrator
+ arch = any
+ license = GPL3
+ depends = kget-integrator
+ source = kget-chrome-1.1.1::https://raw.githubusercontent.com/NicolasGuilloux/KGet-Integrator/v1.1.1/Conf/com.kgetdm.chrome.json
+ source = kget-firefox-1.1.1::https://raw.githubusercontent.com/NicolasGuilloux/KGet-Integrator/v1.1.1/Conf/com.kgetdm.firefox.json
+ md5sums = 4029bede327a730ad3cbdeca07426eb1
+ md5sums = a3f781f4d06312c4aae24bbf0d6de1e4
+
+pkgname = kget-integrator-chrome
+ pkgdesc = Configuration to connect Google Chrome with kget-integrator
+ optdepends = google-chrome: the browser
+
+pkgname = kget-integrator-chromium
+ pkgdesc = Configuration to connect Chromium with kget-integrator
+ optdepends = chromium: the browser
+
+pkgname = kget-integrator-opera
+ pkgdesc = Configuration to connect Opera with kget-integrator
+ optdepends = opera-beta: the browser beta version
+ optdepends = opera-developer: the browser developer version
+
+pkgname = kget-integrator-firefox
+ pkgdesc = Configuration to connect Firefox with kget-integrator
+ optdepends = firefox: the browser
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..90c29751f8c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+kget-* \ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..f4a1faabe6e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+version = 9add3366d25530d51d168608c54b5339b64d2a4e
+
+help:
+ @grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-10s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
+
+build:clear ## Build pakage
+ makepkg -s
+
+clear: ## Clear files
+ rm -rf ./pkg
+ rm -rf ./src
+ rm -f ./*.zip
+ rm -f ./*~
+ rm -f ./kget-integrator*
+
+pkgsum: ## update pkgsum with updpkgsums
+ updpkgsums
+
+release:clear pkgsum srcinfo ## Release preparation
+ git pull
+
+srcinfo: ## génération .SRCINFO
+ makepkg --printsrcinfo > .SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..abdcf35240f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer : Nover <nicolas.guilloux@protonmail.com>
+# Heavily inspired by https://aur.archlinux.org/packages/uget-integrator-browsers/
+
+pkgbase=kget-integrator-browsers
+pkgname=(kget-integrator-chrome kget-integrator-chromium kget-integrator-opera kget-integrator-firefox)
+arch=('any')
+url="https://github.com/NicolasGuilloux/KGet-Integrator"
+license=('GPL3')
+depends=('kget-integrator')
+pkgver=1.1.1
+pkgrel=1
+makedepends=()
+source=("kget-chrome-$pkgver::https://raw.githubusercontent.com/NicolasGuilloux/KGet-Integrator/v$pkgver/Conf/com.kgetdm.chrome.json"
+ "kget-firefox-$pkgver::https://raw.githubusercontent.com/NicolasGuilloux/KGet-Integrator/v$pkgver/Conf/com.kgetdm.firefox.json")
+md5sums=('4029bede327a730ad3cbdeca07426eb1'
+ 'a3f781f4d06312c4aae24bbf0d6de1e4')
+
+build() {
+ cd "$srcdir"
+}
+
+#for Google Chrome
+package_kget-integrator-chrome(){
+ optdepends=('google-chrome: the browser')
+ pkgdesc="Configuration to connect Google Chrome with kget-integrator"
+ # install="chrome.install"
+ cd "$srcdir"
+ mkdir -p "$pkgdir/etc/opt/chrome/native-messaging-hosts"
+ install -m644 "kget-chrome-$pkgver" "$pkgdir"/etc/opt/chrome/native-messaging-hosts/com.kgetdm.chrome.json
+}
+
+#for Chromium and Vivaldi
+package_kget-integrator-chromium(){
+ optdepends=('chromium: the browser')
+ pkgdesc="Configuration to connect Chromium with kget-integrator"
+ # install="chrome.install"
+ cd "$srcdir"
+ mkdir -p "$pkgdir/etc/chromium/native-messaging-hosts"
+ install -m644 "kget-chrome-$pkgver" "$pkgdir"/etc/chromium/native-messaging-hosts/com.kgetdm.chrome.json
+}
+
+#for Opera
+package_kget-integrator-opera(){
+ optdepends=('opera-beta: the browser beta version' 'opera-developer: the browser developer version')
+ pkgdesc="Configuration to connect Opera with kget-integrator"
+ # install="opera.install"
+ cd "$srcdir"
+ mkdir -p "$pkgdir/etc/opera/native-messaging-hosts"
+ install -m644 "kget-chrome-$pkgver" "$pkgdir"/etc/opera/native-messaging-hosts/com.kgetdm.chrome.json
+}
+
+#for Firefox
+package_kget-integrator-firefox(){
+ optdepends=('firefox: the browser')
+ pkgdesc="Configuration to connect Firefox with kget-integrator"
+ # install="firefox.install"
+ cd "$srcdir"
+ mkdir -p "$pkgdir/usr/lib/mozilla/native-messaging-hosts"
+ install -m644 "kget-firefox-$pkgver" "$pkgdir"/usr/lib/mozilla/native-messaging-hosts/com.kgetdm.firefox.json
+
+ echo "You will need to install the extension from the following link, and restart your browser:"
+ echo "https://addons.mozilla.org/fr/firefox/addon/kget-integration/"
+} \ No newline at end of file