# Maintainer: Natanael Copa pkgname=dpkg pkgver=1.19.6 pkgrel=0 pkgdesc="The Debian Package Manager" url="https://packages.debian.org/dpkg" arch="all" license="GPL-2.0-or-later BSD-2-Clause" depends="tar xz" options="!check" makedepends="bzip2-dev linux-headers perl zlib-dev" subpackages="$pkgname-doc $pkgname-dev" source="https://deb.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver.tar.xz" builddir="$srcdir"/$pkgname-$pkgver 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 # Add missing dir & files install -d "$pkgdir/var/$pkgname"/updates/ touch "$pkgdir/var/lib/$pkgname"/status touch "$pkgdir/var/lib/$pkgname"/available } 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="71981079835ea4bd5c4a381ca8702cf489c788034e29c129899eb288cfaf4ec55eb58c0aea13145dcde99f15a47d2de71fba7b5e7eb8e6b1b1d6f016de8a919d dpkg_1.19.6.tar.xz"