updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / dpkg / PKGBUILD
blob8c07c7239e85ff75b0034b4e70d6bd0b468d3352
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>
6 pkgname=dpkg
7 pkgver=1.16.1.2
8 pkgrel=2
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}"
12 license=('GPL')
13 depends=('bzip2' 'perl-timedate')
14 makedepends=('gcc' 'make' 'patch')
15 optdepends=('fakeroot')
16 replaces=(dpkg-ubuntu)
17 conflits=(dpkg-ubuntu)
18 #options=(!emptydirs)
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')
24 build() {
25         cd ${pkgname}-${pkgver}
27         # Config
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"
34         # Build
35         ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --without-start-stop-daemon || return 1
36         make || return 1
37         make DESTDIR=${pkgdir} install || return 1
39         # Variables
40         install -d ${pkgdir}/var/${pkgname}/updates/
41         touch ${pkgdir}/var/lib/${pkgname}/{status,available}