blob: 13c575e47c51cad6903a9f87cda6bdcfb43af205 (
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
|
pkgname=dpkg
pkgver=1.18.4
pkgrel=1
pkgdesc="The Debian Package Manager. Don't use it instead of Arch's 'pacman'."
arch=('i686' 'x86_64')
url="http://packages.debian.org/${pkgname}"
license=('GPL')
depends=('bzip2' 'xz' 'zlib' 'ncurses')
makedepends=('gcc' 'make' 'perl' 'pkg-config' 'perl-io-string' 'perl-timedate')
optdepends=('fakeroot')
replaces=(dpkg-ubuntu)
conflicts=(dpkg-ubuntu)
source=(
http://ftp.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_${pkgver}.tar.xz
dpkg-gzip-rsyncable.patch
)
md5sums=('e48fcfdb2162e77d72c2a83432d537ca'
'71fd0c244ca1fc7132c708022ca50ef0')
build() {
cd "${pkgname}-${pkgver}"
patch -p0 -i "${startdir}/dpkg-gzip-rsyncable.patch"
# Build
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin \
--disable-start-stop-daemon --disable-install-info --with-zlib --with-bz2 --with-liblzma
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# Variables
install -d "${pkgdir}/var/${pkgname}/updates/"
touch ${pkgdir}/var/lib/${pkgname}/{status,available}
}
|