1 # Maintainer: Jochen Schalanda <jochen+aur (at) schalanda.name>
2 # Contributor: Thomas Dziedzic <gostrc (at) gmail>
3 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
4 # Contributor: seblu <seblu+arch (at) seblu.net>
5 # Contributor: squiddo <squiddo (at) intheocean.net>
9 pkgdesc="The Debian Package Manager. Don't use it instead of Arch's 'pacman'."
10 arch=('i686' 'x86_64')
11 url="http://packages.debian.org/${pkgname}"
13 depends=('bzip2' 'perl-timedate')
14 makedepends=('gcc' 'make' 'patch')
15 optdepends=('fakeroot')
16 replaces=(dpkg-ubuntu)
17 conflits=(dpkg-ubuntu)
19 source=(http://ftp.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_${pkgver}.tar.bz2 dpkg-rsyncable.patch dpkg-arch.patch)
20 md5sums=('068ae5e650e54968230de19d6c4e2241'
21 '9bf2d0d6dd5b9d6f573123b9f94c0fc5'
22 '86d25c0ee45df6e4821f16a1c9f4b60c')
25 cd ${pkgname}-${pkgver}
28 sed -i 's|<ncursesw/curses.h>|<curses.h>|g' dselect/{dselect.h,Makefile.in} || return 1
29 sed -i 's|<ncursesw/term.h>|<term.h>|g' dselect/main.cc || return 1
31 patch -p0 -i "${startdir}/dpkg-rsyncable.patch"
32 patch -p0 -i "${startdir}/dpkg-arch.patch"
35 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --without-start-stop-daemon || return 1
37 make DESTDIR=${pkgdir} install || return 1
40 install -d ${pkgdir}/var/${pkgname}/updates/
41 touch ${pkgdir}/var/lib/${pkgname}/{status,available}