summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2017-01-24 13:16:27 +0100
committeraksr2017-01-24 13:16:27 +0100
commitc699e9d2ba6a9f3b2056327b5b9a7307ace25912 (patch)
tree1306503b93db9bd09893d295737ca94049eab87d
downloadaur-firefox-youtube-no-buffer-git.tar.gz
Start.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD44
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9a31c728df0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Tue Jan 24 12:16:27 UTC 2017
+pkgbase = firefox-youtube-no-buffer-git
+ pkgdesc = A bulletproof Firefox only extension to prevent YouTube player from buffering.
+ pkgver = r6.128d9ed
+ pkgrel = 1
+ url = https://github.com/james-fray/YouTube-No-Buffer
+ arch = any
+ license = MPL
+ makedepends = git
+ makedepends = unzip
+ conflicts = firefox-youtube-no-buffer
+ source = firefox-youtube-no-buffer-git::git+https://github.com/james-fray/YouTube-No-Buffer
+ md5sums = SKIP
+
+pkgname = firefox-youtube-no-buffer-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..32dfecd3e0a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=firefox-youtube-no-buffer-git
+pkgver=r6.128d9ed
+pkgrel=1
+epoch=
+pkgdesc="A bulletproof Firefox only extension to prevent YouTube player from buffering."
+arch=('any')
+url="https://github.com/james-fray/YouTube-No-Buffer"
+license=('MPL')
+categories=()
+groups=()
+depends=('')
+makedepends=('git' 'unzip')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=('firefox-youtube-no-buffer')
+replaces=()
+backup=()
+options=()
+changelog=
+install=
+source=("$pkgname::git+https://github.com/james-fray/YouTube-No-Buffer")
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$pkgname/src"
+ unzip -qqo iynbuffer.xpi -d iynbuffer
+}
+
+
+package() {
+ cd "$srcdir/$pkgname/src"
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' iynbuffer/install.rdf)"
+ _extension_dest="$pkgdir/usr/lib/firefox/browser/extensions/${_extension_id}"
+ install -Dm644 iynbuffer.xpi "${_extension_dest}.xpi"
+}
+