diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-01-22 19:20:30 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-01-22 19:20:30 +0100 |
commit | 20d27b4ecd70e8dd86f4e1fb3a1e97ea00479878 (patch) | |
tree | bf302d771b0d5e0a5345bd8fcec59d977d0d782a | |
parent | 35c07d08888ad1811a46598a1c0cbe0af07ffe16 (diff) | |
download | abslibre-20d27b4ecd70e8dd86f4e1fb3a1e97ea00479878.tar.gz abslibre-20d27b4ecd70e8dd86f4e1fb3a1e97ea00479878.tar.bz2 abslibre-20d27b4ecd70e8dd86f4e1fb3a1e97ea00479878.zip |
Add mozilla-devscripts, to be used to build iceweasel-i18n.
-rw-r--r-- | libre/mozilla-devscripts/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/mozilla-devscripts/PKGBUILD b/libre/mozilla-devscripts/PKGBUILD new file mode 100644 index 000000000..5762a9737 --- /dev/null +++ b/libre/mozilla-devscripts/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Michał Masłowski <mtjm@mtjm.eu> + +pkgname=mozilla-devscripts +pkgver=0.30 +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" "unzip") +_debrepo=http://ftp.debian.org/debian/pool/main/ +source=("${_debrepo}/m/${pkgname}/${pkgname}_${pkgver}.dsc" + "${_debrepo}/m/${pkgname}/${pkgname}_${pkgver}.tar.gz") +md5sums=("6e517cef69c115356eb808866fd29268" + "4e95fb93d0d93b56543d2a789d457309") + +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: |