summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-12 18:06:34 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-12 18:06:34 -0500
commit330c0a9ff2e05b86f69f0209b3265cb003e0c98d (patch)
tree34cccc67370ca8d178c21556bc6c6a894bef1f84 /pcr
parent3a5380856fae97f3358dc00522656c9f1fc26187 (diff)
parentdc26483bfd644bb2ad6dd25e3bb5ca9e2bbe1099 (diff)
downloadabslibre-330c0a9ff2e05b86f69f0209b3265cb003e0c98d.tar.gz
abslibre-330c0a9ff2e05b86f69f0209b3265cb003e0c98d.tar.bz2
abslibre-330c0a9ff2e05b86f69f0209b3265cb003e0c98d.zip
Merge branch 'wip-merge'
Conflicts: libre/dpkg/PKGBUILD libre/iceweasel-i18n/PKGBUILD libre/iceweasel-libre/PKGBUILD
Diffstat (limited to 'pcr')
-rw-r--r--pcr/mozilla-devscripts/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/mozilla-devscripts/PKGBUILD b/pcr/mozilla-devscripts/PKGBUILD
new file mode 100644
index 000000000..ef7ea7641
--- /dev/null
+++ b/pcr/mozilla-devscripts/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+# Contributor: Márcio Silva <coadde@lavabit.com>
+
+pkgname=mozilla-devscripts
+pkgver=0.32
+pkgrel=1
+pkgdesc="Development scripts used by Debian Mozilla's addons packages"
+arch=("any")
+url="http://packages.debian.org/source/unstable/mozilla-devscripts"
+license=('GPL' 'custom')
+depends=("python2" "zip" "unzip")
+_debrepo=http://ftp.debian.org/debian/pool/main/
+source=("${_debrepo}/m/${pkgname}/${pkgname}_${pkgver}.dsc"
+ "${_debrepo}/m/${pkgname}/${pkgname}_${pkgver}.tar.gz")
+md5sums=("386a5854601f29dca4a293f90f6c2a69"
+ "230126afa15fa654eb254bb4e61b4a93")
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # Adapt it to Arch's Python naming.
+ find . -type f | xargs -L1 sed -i "s:#!/usr/bin/python:#!/usr/bin/python2:"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ # The Makefile expects the system to have standard Python name, so
+ # do this directly here.
+ python2 setup.py install --root="$pkgdir/"
+ install -Dm644 debian/copyright "${pkgdir}/usr/share/licenses/${pkgname}/copyright"
+}
+
+# vim:set ts=2 sw=2 et: