blob: a2b1ac21bebe25cec4fd97c3579948231bedb387 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dpkg
pkgver=1.16.15
pkgrel=1
pkgdesc="The Debian Package Manager"
url="http://packages.debian.org/dpkg"
arch="all"
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.xz"
_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 \
--localstatedir=/var \
--with-zlib \
--with-bzip2 \
--disable-dselect \
--disable-start-stop-daemon \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
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-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="0e7d105a57839cdab2b0bf5e3612442f dpkg_1.16.15.tar.xz"
sha256sums="92bca9901ba2d9300be42f6de8dbea59b8367a918a2abeeb47d2176c9cf86b55 dpkg_1.16.15.tar.xz"
sha512sums="a9e450cd700b32ccf0dec82fa2faad15016860db1e1448fafa01541ec280a59a951670338afc634472856021e8227426552f6c41b9eaddcddd3712ad709a673a dpkg_1.16.15.tar.xz"
|