diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 17:29:35 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 17:29:35 +0000 |
commit | 6236ed9a188fa2c0d8a7ede1ca08e9dd9521fea4 (patch) | |
tree | c98fb81f84a6c72402b4106efc8429173a9caf9d /main | |
parent | eea9ba2e261f7c841f297b06692bf0610b95ab75 (diff) | |
download | aports-6236ed9a188fa2c0d8a7ede1ca08e9dd9521fea4.tar.bz2 aports-6236ed9a188fa2c0d8a7ede1ca08e9dd9521fea4.tar.xz |
main/dpkg: new aport
The Debian Package Manager
http://packages.debian.org/dpkg
Diffstat (limited to 'main')
-rw-r--r-- | main/dpkg/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/main/dpkg/APKBUILD b/main/dpkg/APKBUILD new file mode 100644 index 000000000..5710f9c5a --- /dev/null +++ b/main/dpkg/APKBUILD @@ -0,0 +1,60 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=dpkg +pkgver=1.15.5.6 +pkgrel=0 +pkgdesc="The Debian Package Manager" +url="http://packages.debian.org/dpkg" +license="GPL" +makedepends="bzip2-dev zlib-dev perl" +subpackages="$pkgname-doc $pkgname-dev" +source="http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + sed -i "s|<ncursesw/curses.h>|<curses.h>|g" dselect/dselect.h \ + dselect/Makefile.in || return 1 + sed -i "s|<ncursesw/term.h>|<term.h>|g" dselect/main.cc || return 1 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --with-zlib \ + --without-dselect \ + --without-start-stop-daemon \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +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-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/ + mv "$pkgdir"/usr/lib/dpkg/parsechangelog "$subpkgdir"/usr/lib/dpkg/ +} + +md5sums="4dcb0de9af234d16a62272bcc61b8873 dpkg_1.15.5.6.tar.bz2" |