# Maintainer: Natanael Copa pkgname=dpkg pkgver=1.19.2 pkgrel=1 pkgdesc="The Debian Package Manager" url="http://packages.debian.org/dpkg" arch="all" license="GPL" depends="xz" options="!check" makedepends="bzip2-dev zlib-dev perl linux-headers" subpackages="$pkgname-doc $pkgname-dev" source="http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver.tar.xz" builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$builddir" default_prepare sed -i "s|||g" dselect/dselect.h \ dselect/Makefile.in sed -i "s|||g" dselect/main.cc } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --with-libz \ --with-libbz2 \ --disable-dselect \ --disable-start-stop-daemon \ --disable-nls make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } dev() { default_dev pkgdesc="Debian package development tools" depends="perl" mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share \ "$subpkgdir"/usr/lib/dpkg mv "$pkgdir"/usr/bin/dpkg-architecture \ "$pkgdir"/usr/bin/dpkg-buildpackage \ "$pkgdir"/usr/bin/dpkg-checkbuilddeps \ "$pkgdir"/usr/bin/dpkg-distaddfile \ "$pkgdir"/usr/bin/dpkg-genchanges \ "$pkgdir"/usr/bin/dpkg-gencontrol \ "$pkgdir"/usr/bin/dpkg-gensymbols \ "$pkgdir"/usr/bin/dpkg-mergechangelogs \ "$pkgdir"/usr/bin/dpkg-name \ "$pkgdir"/usr/bin/dpkg-parsechangelog \ "$pkgdir"/usr/bin/dpkg-scanpackages \ "$pkgdir"/usr/bin/dpkg-scansources \ "$pkgdir"/usr/bin/dpkg-shlibdeps \ "$pkgdir"/usr/bin/dpkg-source \ "$pkgdir"/usr/bin/dpkg-vendor \ "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share/perl* "$subpkgdir"/usr/share/ } sha512sums="244a6ef6aad935aee649503d6ce3238e34f4fae3f57ca79e99c1890140d913c29255bc9d0e90b50e96d2cf44ab0e44d6c3675a7bed306213fe5fe31710324cf7 dpkg_1.19.2.tar.xz"