summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2015-07-30 12:17:14 +0200
committerXZS2015-07-30 12:17:14 +0200
commit3567287555dc2be37ceebbb177d27d82825bfdf1 (patch)
treee90042de4aba027d5af10038a4f8ae060e138003
downloadaur-3567287555dc2be37ceebbb177d27d82825bfdf1.tar.gz
intital import from old AUR version 3
-rw-r--r--.SRCINFO37
-rw-r--r--PKGBUILD111
2 files changed, 148 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4eaa86401a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,37 @@
+pkgbase = mozilla-extension-gnome-keyring-git
+ pkgdesc = Mozilla extension to store passwords and form logins in gnome-keyring.
+ pkgver = 0.10.r36.378d9f3
+ pkgrel = 1
+ url = https://github.com/swick/moz-gnome-keyring-integration
+ arch = any
+ license = GPLv3
+ makedepends = git
+ makedepends = rasqal
+ depends = libgnome-keyring
+ provides = firefox-gnome-keyring
+ provides = thunderbird-gnome-keyring
+ provides = mozilla-extension-gnome-keyring
+ conflicts = firefox-gnome-keyring
+ conflicts = firefox-gnome-keyring-git
+ conflicts = firefox-gnome-keyring-bin
+ conflicts = thunderbird-gnome-keyring
+ conflicts = thunderbird-gnome-keyring-git
+ conflicts = thunderbird-gnome-keyring-bin
+ conflicts = mozilla-extension-gnome-keyring
+ source = mozilla-extension-gnome-keyring::git+https://github.com/swick/moz-gnome-keyring-integration
+ md5sums = SKIP
+
+pkgname = mozilla-extension-gnome-keyring-git
+
+pkgname = firefox-extension-gnome-keyring-git
+ depends = mozilla-extension-gnome-keyring-git=0.10.r36.378d9f3
+ depends = firefox
+ provides = firefox-extension-gnome-keyring
+ conflicts = firefox-extension-gnome-keyring
+
+pkgname = thunderbird-extension-gnome-keyring-git
+ depends = mozilla-extension-gnome-keyring-git=0.10.r36.378d9f3
+ depends = thunderbird
+ provides = thunderbird-extension-gnome-keyring
+ conflicts = thunderbird-extension-gnome-keyring
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..004ee6a1e65
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,111 @@
+# Maintainer: XZS <d dot f dot fischer at web dot de>
+# Contributor: hashstat <hashstat .AT. yahoo .DOT. com>
+# Contributor: Anshuman Bhaduri <anshuman dot bhaduri0 at gmail dot com>
+# Contributor: bzt <unmacaque@gmail.com>
+# This PKGBUILD is maintained on GitHub <https://github.com/dffischer/mozilla-extensions>.
+# You may find it convenient to file issues and pull requests there.
+
+pkgname=mozilla-extension-gnome-keyring-git
+pkgver=0.10.r36.378d9f3
+pkgrel=1
+pkgdesc="Mozilla extension to store passwords and form logins in gnome-keyring."
+arch=(any)
+url='https://github.com/swick/moz-gnome-keyring-integration'
+license=(GPLv3)
+depends=(libgnome-keyring)
+optdepends=(firefox thunderbird)
+provides=({firefox,thunderbird}-gnome-keyring)
+conflicts=({firefox,thunderbird}-gnome-keyring{,-git,-bin})
+
+makedepends+=('git')
+source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
+md5sums+=('SKIP')
+provides+=($_gitname)
+conflicts+=($_gitname)
+
+# Move down repository content for easier access by following functions.
+prepare() {
+ cp -rf --reflink=auto "$_gitname"/* .
+ rm -rf "$_gitname"
+ find -name '.git*' -exec rm -rf '{}' +
+}
+
+makedepends+=(rasqal)
+
+sparql() {
+ roqet -e "PREFIX em: <http://www.mozilla.org/2004/em-rdf#> SELECT ?x WHERE { $1 }" \
+ -D "${2:-install.rdf}" -r csv 2>/dev/null | tr -d '\r' | tail -n 1 | head -c -1
+}
+
+pkgver() {
+ cd $_gitname
+ sparql '<urn:mozilla:install-manifest> em:version ?x' | tr - .
+ echo -n .
+printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ rm LICENSE Makefile
+}
+
+eval "package_$pkgname()" '{
+ prepare_target
+ cp --no-preserve=ownership,mode -r . "$destdir/$id"
+}'
+
+for target in "${optdepends[@]}"; do
+ local newname="${target/%/-${pkgname[0]#mozilla-}}"
+ pkgname+=("$newname")
+ eval "package_$newname() {
+ # Unversioned package relations have to be here and not in link for mksrcinfo to find them.
+ depends=(${pkgname[0]}=$pkgver $target)
+ provides=(\$(if [[ $newname = *-git ]]; then echo ${newname%-git}; fi))
+ conflicts=(\$(if [[ $newname = *-git ]]; then echo ${newname%-git}; fi))
+ link $target
+ }"
+done
+optdepends=()
+
+
+version-range() {
+ local emid=$(emid $1)
+ echo "$1>$(version min $emid)" "$1<$(version max $emid)"
+}
+
+emid() {
+ case $1 in
+ firefox) echo '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' ;;
+ thunderbird) echo '{3550f703-e582-4d05-9a08-453d09bdfdc6}' ;;
+ *) return 1 ;;
+ esac
+}
+
+version() {
+ local version;
+ version=$(sparql "[] em:id '$2' ; em:${1}Version ?x" \
+ "$srcdir/install.rdf" )
+ if [[ $version =~ ([[:digit:]]+).\* ]]; then
+ if [[ $1 = max ]]; then
+ echo $(( ${BASH_REMATCH[1]} + 1 ))
+ else
+ echo "=${BASH_REMATCH[1]}"
+ fi
+ else
+ echo "=$version"
+ fi
+}
+
+prepare_target() {
+ local target=${pkgname%%-*}
+ id="$(sparql '<urn:mozilla:install-manifest> em:id ?x')"
+ destdir="$pkgdir/usr/lib/${target/firefox/firefox\/browser}/extensions"
+ install -d "$destdir"
+}
+
+link() {
+ depends+=($(version-range $1))
+ unset depends[1]
+
+ prepare_target
+ ln -s "/usr/lib/mozilla/extensions/$id" "$destdir/$id"
+}