From 158b35a711165b70a2b718b01cbc261ba50a5cf1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 2 Apr 2012 17:48:39 -0400 Subject: add libre/{debhelper,dpkg} for the purpose of using debhelper to compile iceweasel --- libre/dpkg/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 libre/dpkg/PKGBUILD (limited to 'libre/dpkg/PKGBUILD') diff --git a/libre/dpkg/PKGBUILD b/libre/dpkg/PKGBUILD new file mode 100644 index 000000000..175b80610 --- /dev/null +++ b/libre/dpkg/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer (AUR): Jochen Schalanda +# Contributor (AUR): Thomas Dziedzic +# Contributor (AUR): Chris Giles +# Contributor (AUR): seblu +# Contributor (AUR): squiddo +# Contributor (Parabola): Luke Shumaker + +_debrepo=http://ftp.debian.org/debian/pool/main/ # Debian Sid +debfile() { echo -n "$_debrepo"; echo -n "$@"|sed -r 's@(.).*@\1/&@'; } + +# TODO: split into (dpkg dpkg-devtools dselect dpkg-perl) +pkgname=dpkg +pkgver=1.16.2 +pkgrel=1 +pkgdesc="The Debian Package Manager and utilities. Don't use it instead of 'pacman'." +arch=('i686' 'x86_64') +url="http://packages.debian.org/${pkgname}" +license=('GPL2') +depends=('bzip2' 'perl-timedate') +makedepends=('gcc' 'make' 'patch') +optdepends=('fakeroot') +replaces=(dpkg-ubuntu) +conflits=(dpkg-ubuntu) +source=(`debfile ${pkgname}`/${pkgname}_${pkgver}.tar.bz2 + dpkg-rsyncable.patch dpkg-arch.patch) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -p1 -i "${srcdir}/dpkg-rsyncable.patch" + patch -p1 -i "${srcdir}/dpkg-arch.patch" # Architecture detection + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --without-start-stop-daemon + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # Variables + install -d "${pkgdir}/var/${pkgname}/updates/" + touch "${pkgdir}/var/lib/${pkgname}/{status,available}" +} + +md5sums=('629ba7ee2024e6a5c0ff807aa2db02f8' + 'bc36609f6191c5b509fae58c21966c95' + '24ab12e79989a2e7f31653fb1dd3cdf9') -- cgit v1.2.3