mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 08:56:44 +02:00
113 lines
2.4 KiB
Text
113 lines
2.4 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=dpkg
|
|
pkgver=1.22.15
|
|
pkgrel=0
|
|
pkgdesc="The Debian Package Manager"
|
|
url="https://wiki.debian.org/Teams/Dpkg"
|
|
arch="all"
|
|
license="GPL-2.0-or-later AND BSD-2-Clause"
|
|
depends="tar xz"
|
|
makedepends="
|
|
autoconf
|
|
automake
|
|
bzip2-dev
|
|
gettext-dev
|
|
libmd-dev
|
|
libtool
|
|
linux-headers
|
|
perl
|
|
po4a
|
|
zlib-dev
|
|
"
|
|
checkdepends="gzip"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://salsa.debian.org/dpkg-team/dpkg/-/archive/$pkgver/dpkg-$pkgver.tar.bz2"
|
|
|
|
# secfixes:
|
|
# 1.21.8-r0:
|
|
# - CVE-2022-1664
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
echo "$pkgver" > .dist-version
|
|
autoreconf -fvi
|
|
|
|
# On the builders /home/buildozer has S_ISGID set this is
|
|
# inherited in $srcdir and causes some dpkg test to end up with
|
|
# a permission mismatch. To fix this remove the S_ISGID from
|
|
# $srcdir.
|
|
chmod -R g-s "$srcdir"
|
|
}
|
|
|
|
build() {
|
|
./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 \
|
|
--disable-static \
|
|
--with-zshcompletionsdir=/usr/share/zsh/site-functions
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
touch "$pkgdir/var/lib/$pkgname"/status
|
|
touch "$pkgdir/var/lib/$pkgname"/available
|
|
|
|
# no bash completions are installed
|
|
rmdir -vp "$pkgdir"/usr/share/bash-completion/completions || :
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
pkgdesc="Debian package development tools"
|
|
depends="perl"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/dpkg \
|
|
"$subpkgdir"/usr/lib/dpkg
|
|
|
|
amove \
|
|
usr/bin/dpkg-architecture \
|
|
usr/bin/dpkg-buildpackage \
|
|
usr/bin/dpkg-checkbuilddeps \
|
|
usr/bin/dpkg-distaddfile \
|
|
usr/bin/dpkg-genchanges \
|
|
usr/bin/dpkg-gencontrol \
|
|
usr/bin/dpkg-gensymbols \
|
|
usr/bin/dpkg-mergechangelogs \
|
|
usr/bin/dpkg-name \
|
|
usr/bin/dpkg-parsechangelog \
|
|
usr/bin/dpkg-scanpackages \
|
|
usr/bin/dpkg-scansources \
|
|
usr/bin/dpkg-shlibdeps \
|
|
usr/bin/dpkg-source \
|
|
usr/bin/dpkg-vendor \
|
|
usr/bin/dpkg-buildflags \
|
|
usr/bin/dpkg-genbuildinfo \
|
|
usr/bin/dpkg-buildapi \
|
|
usr/share/perl5/ \
|
|
usr/share/dpkg/*.mk
|
|
}
|
|
|
|
sha512sums="
|
|
fb3f271749a519496f8dab518181a58e57607d5d2a6726363294aa010b04946de7c7cc78c7a9edf2b1a4001f2da88917f1ea50bee85492684f4dbd3a9293836b dpkg-1.22.15.tar.bz2
|
|
"
|