summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohncf2018-01-29 00:00:12 +0530
committerjohncf2018-01-29 00:00:12 +0530
commite9389eb954c6d40c80f545a9c4d636fd05b4b095 (patch)
tree8aadea3e058347839b752bcfc92756d9dc212dbc
downloadaur-e9389eb954c6d40c80f545a9c4d636fd05b4b095.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD38
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ab2f0e703ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = woff2-bin
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://github.com/google/woff2
+ arch = x86_64
+ license = MIT
+ depends = brotli
+ conflicts = woff2
+ conflicts = woff2-git
+ noextract = libwoff1_1.0.2-1_amd64.deb
+ noextract = libwoff-dev_1.0.2-1_amd64.deb
+ noextract = woff2_1.0.2-1_amd64.deb
+ source_x86_64 = http://httpredir.debian.org/debian/pool/main/w/woff2/libwoff1_1.0.2-1_amd64.deb
+ source_x86_64 = http://httpredir.debian.org/debian/pool/main/w/woff2/libwoff-dev_1.0.2-1_amd64.deb
+ source_x86_64 = http://httpredir.debian.org/debian/pool/main/w/woff2/woff2_1.0.2-1_amd64.deb
+ sha1sums_x86_64 = 4e50cce8dd19a399a36c9d109e17e8ab838cf25e
+ sha1sums_x86_64 = e3fc8fc4e245881b30650509ffe3f6e639632a47
+ sha1sums_x86_64 = 4e1d97b96222dd10d53eb813c12dd861f49b308d
+
+pkgname = woff2-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c972e7c6f4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: John C F <john.ch.fr [at] gmail [dot] com>
+
+pkgname=woff2-bin
+pkgver=1.0.2
+_debver=1.0.2-1
+pkgrel=1
+pkgdesc=""
+url="https://github.com/google/woff2"
+arch=(x86_64)
+license=(MIT)
+depends=(brotli)
+conflicts=(woff2 woff2-git)
+
+source_x86_64=(
+ http://httpredir.debian.org/debian/pool/main/w/woff2/libwoff1_${_debver}_amd64.deb
+ http://httpredir.debian.org/debian/pool/main/w/woff2/libwoff-dev_${_debver}_amd64.deb
+ http://httpredir.debian.org/debian/pool/main/w/woff2/woff2_${_debver}_amd64.deb)
+noextract=(libwoff1_${_debver}_amd64.deb
+ libwoff-dev_${_debver}_amd64.deb
+ woff2_${_debver}_amd64.deb)
+
+sha1sums_x86_64=('4e50cce8dd19a399a36c9d109e17e8ab838cf25e'
+ 'e3fc8fc4e245881b30650509ffe3f6e639632a47'
+ '4e1d97b96222dd10d53eb813c12dd861f49b308d')
+
+prepare() {
+ mkdir -p libwoff1 libwoff-dev woff2
+ bsdtar -xf libwoff1_${_debver}_amd64.deb -C libwoff1
+ bsdtar -xf libwoff-dev_${_debver}_amd64.deb -C libwoff-dev
+ bsdtar -xf woff2_${_debver}_amd64.deb -C woff2
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib"
+ tar -xf libwoff1/data.tar.?z -C "$pkgdir/usr/lib" --strip=4 ./usr/lib/x86_64-linux-gnu
+ tar -xf libwoff-dev/data.tar.?z -C "$pkgdir/usr/lib" --strip=4 ./usr/lib/x86_64-linux-gnu
+ tar -xf woff2/data.tar.?z -C "$pkgdir" ./usr/bin ./usr/share/doc/woff2/copyright
+}