summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-16 23:34:10 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-05-16 23:34:10 -0300
commit8ee9e214396dad64ee12d8fd5a1be9b15c7842be (patch)
tree5a7490b78d7b3aca856aee760bb5164ba6983090 /pcr
parent6ad57227f7b97199555231385e709eb18baaab68 (diff)
parentcf013748c2619b2ec77d7395ea1ef5aa556b5a35 (diff)
downloadabslibre-8ee9e214396dad64ee12d8fd5a1be9b15c7842be.tar.gz
abslibre-8ee9e214396dad64ee12d8fd5a1be9b15c7842be.tar.bz2
abslibre-8ee9e214396dad64ee12d8fd5a1be9b15c7842be.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Conflicts: libre/licenses-libre/PKGBUILD
Diffstat (limited to 'pcr')
-rw-r--r--pcr/mozilla-addon-sdk/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/mozilla-addon-sdk/PKGBUILD b/pcr/mozilla-addon-sdk/PKGBUILD
new file mode 100644
index 000000000..65c998b9a
--- /dev/null
+++ b/pcr/mozilla-addon-sdk/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor (AUR): Johannes Dewender <arch@JonnyJD.net>
+# Contributor (AUR): trashstar
+
+_pkgname=addon-sdk
+pkgname=mozilla-addon-sdk
+pkgver=1.16
+pkgdesc="SDK to build add-ons for Mozilla products (formerly jetpack)"
+url="https://developer.mozilla.org/en-US/Add-ons/SDK"
+license=('MPL2')
+
+pkgrel=1
+arch=('any')
+depends=('python2')
+
+source=("https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('08388bee155b5f950b4c0fe2ed8dfccf')
+
+prepare() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ grep -rl python . | xargs sed -ri \
+ -e 's/^(#!.*|\s*)python(\s|$)/\1python2\2/' \
+ -e 's/(\$ |`)python /python2 /' \
+ -e 's/python -m/python2 -m/'
+}
+
+package() {
+ install -d "${pkgdir}/opt" "$pkgdir/usr/bin"
+ cp -r "${srcdir}/${_pkgname}-${pkgver}" "${pkgdir}/opt/${pkgname}"
+ ln -srT "$pkgdir/opt/${pkgname}/bin/cfx" "$pkgdir/usr/bin/cfx"
+}
+
+# vim:set ts=2 sw=2 et: