summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryochananmarqos2019-03-11 10:34:46 -0600
committeryochananmarqos2019-03-11 10:34:46 -0600
commita754dcb29bf7534f38da8f75c5f5363db473c101 (patch)
tree995944024cf1805760f73ab69d291811053f3b2d
downloadaur-a754dcb29bf7534f38da8f75c5f5363db473c101.tar.gz
initial upload
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
-rw-r--r--gnome-web-shortcuts-extension.install11
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..257e6548ddb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = gnome-web-shortcuts-extension-git
+ pkgdesc = Adds a 'Create web link...' menu item to Nautilus, which makes it simple to create URL shortcut files in directories
+ pkgver = r16.2d89c1e
+ pkgrel = 1
+ url = https://samthursfield.wordpress.com/2019/03/10/inspire-me-nautilus
+ install = gnome-web-shortcuts-extension.install
+ arch = any
+ makedepends = git
+ makedepends = meson
+ depends = nautilus
+ depends = firefox
+ provides = gnome-web-shortcuts-extension
+ conflicts = gnome-web-shortcuts-extension
+ source = git+https://gitlab.gnome.org/sthursfield/gnome-web-shortcuts-extension.git
+ sha256sums = SKIP
+
+pkgname = gnome-web-shortcuts-extension-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3ef3a9f4ffc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
+pkgname=gnome-web-shortcuts-extension-git
+pkgver=r16.2d89c1e
+pkgrel=1
+pkgdesc="Adds a 'Create web link...' menu item to Nautilus, which makes it simple to create URL shortcut files in directories"
+arch=('any')
+url="https://samthursfield.wordpress.com/2019/03/10/inspire-me-nautilus"
+depends=('nautilus' 'firefox')
+makedepends=('git' 'meson')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+install="${pkgname%-git}.install"
+source=("git+https://gitlab.gnome.org/sthursfield/gnome-web-shortcuts-extension.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${pkgname%-git}"
+ meson . build --prefix /usr
+ ninja -C build
+}
+
+package() {
+ cd "${pkgname%-git}"
+ DESTDIR="$pkgdir" ninja -C build install
+}
diff --git a/gnome-web-shortcuts-extension.install b/gnome-web-shortcuts-extension.install
new file mode 100644
index 00000000000..a2aad00d702
--- /dev/null
+++ b/gnome-web-shortcuts-extension.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo -e "***************************************************"
+ echo -e "* *"
+ echo -e "* set application/x-desktop to firefox.desktop in *"
+ echo -e "* ~/.config/mimeapps.list: *"
+ echo -e "* *"
+ echo -e "* application/x-desktop=firefox.desktop; *"
+ echo -e "* *"
+ echo -e "***************************************************"
+ echo -e -n ""
+}