From 07d1af1bca9525df579a3805d46d6819d23cb242 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 28 Dec 2012 21:09:44 -0500 Subject: mv libre/mozilla-devscripts pcr --- pcr/mozilla-devscripts/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pcr/mozilla-devscripts/PKGBUILD (limited to 'pcr/mozilla-devscripts/PKGBUILD') 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 +# Contributor: Márcio Silva + +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: -- cgit v1.2.3-54-g00ecf