Commit ca3799aa authored by Francesco Colista's avatar Francesco Colista

main/dpkg: upgrade to 1.19.2, updated APKBUILD

parent cd352ad6
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dpkg pkgname=dpkg
pkgver=1.18.24 pkgver=1.19.2
pkgrel=0 pkgrel=0
pkgdesc="The Debian Package Manager" pkgdesc="The Debian Package Manager"
url="http://packages.debian.org/dpkg" url="http://packages.debian.org/dpkg"
arch="all" arch="all"
license="GPL" license="GPL"
depends="xz" depends="xz"
options="!check"
makedepends="bzip2-dev zlib-dev perl linux-headers" makedepends="bzip2-dev zlib-dev perl linux-headers"
subpackages="$pkgname-doc $pkgname-dev" subpackages="$pkgname-doc $pkgname-dev"
source="http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver.tar.xz source="http://ftp.de.debian.org/debian/pool/main/d/$pkgname/${pkgname}_$pkgver.tar.xz"
"
builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$builddir" cd "$builddir"
default_prepare || return 1 default_prepare
sed -i "s|<ncursesw/curses.h>|<curses.h>|g" dselect/dselect.h \ sed -i "s|<ncursesw/curses.h>|<curses.h>|g" dselect/dselect.h \
dselect/Makefile.in || return 1 dselect/Makefile.in
sed -i "s|<ncursesw/term.h>|<term.h>|g" dselect/main.cc || return 1 sed -i "s|<ncursesw/term.h>|<term.h>|g" dselect/main.cc
} }
build() { build() {
...@@ -35,14 +35,13 @@ build() { ...@@ -35,14 +35,13 @@ build() {
--with-libbz2 \ --with-libbz2 \
--disable-dselect \ --disable-dselect \
--disable-start-stop-daemon \ --disable-start-stop-daemon \
--disable-nls \ --disable-nls
|| return 1 make
make || return 1
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
} }
dev() { dev() {
...@@ -65,9 +64,9 @@ dev() { ...@@ -65,9 +64,9 @@ dev() {
"$pkgdir"/usr/bin/dpkg-shlibdeps \ "$pkgdir"/usr/bin/dpkg-shlibdeps \
"$pkgdir"/usr/bin/dpkg-source \ "$pkgdir"/usr/bin/dpkg-source \
"$pkgdir"/usr/bin/dpkg-vendor \ "$pkgdir"/usr/bin/dpkg-vendor \
"$subpkgdir"/usr/bin/ || return 1 "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/perl* "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/share/perl* "$subpkgdir"/usr/share/
} }
sha512sums="74df36a49a1b6b2243db14bd7ee0b69e50c2f0e79fc87e86e9b3cba2261fb717e421f7190a3ba54b4680a2f83855e5857dcb2625aa56847133258567392f1d42 dpkg_1.18.24.tar.xz" sha512sums="244a6ef6aad935aee649503d6ce3238e34f4fae3f57ca79e99c1890140d913c29255bc9d0e90b50e96d2cf44ab0e44d6c3675a7bed306213fe5fe31710324cf7 dpkg_1.19.2.tar.xz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment