summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd8d57111e071948a844d7b20a0dd1c9b91aab49 (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
# Maintainer: desbma
# shellcheck disable=SC2034,SC2148,SC2154,SC2164
pkgname=debmirror
pkgver=2.38
pkgrel=1
pkgdesc='Debian partial mirror script, with ftp and package pool support'
url="https://salsa.debian.org/debian/${pkgname}"
arch=('any')
license=('GPL2')
# see https://packages.debian.org/fr/sid/debmirror
depends=('bzip2' 'perl-lockfile-simple' 'perl-libwww' 'rsync' 'xz')
optdepends=('diffutils' 'ed' 'gnupg' 'patch')
makedepends=('pod2man')
source=("https://salsa.debian.org/debian/${pkgname}/-/archive/debian/1%25${pkgver}/${pkgname}-debian-1%25${pkgver}.tar.bz2")
sha512sums=('8884a209be0b6210e78c3353cb4b6f8a679284fa9f706fa00f9de443e82caef0c054520220737f71a2982d9bb00396883ebae8009a0c04d8c6d735fc91bd67b3')

build() {
    cd "${srcdir}/${pkgname}-debian-1%${pkgver}"
    make all
}

check() {
    cd "${srcdir}/${pkgname}-debian-1%${pkgver}"
    make check
}

package() {
    cd "${srcdir}/${pkgname}-debian-1%${pkgver}"

    # see https://packages.debian.org/fr/sid/all/debmirror/filelist
    install -Dm 755 debmirror ${pkgdir}/usr/bin/debmirror
    install -Dm 644 TODO ${pkgdir}/usr/share/doc/${pkgname}/TODO
    install -Dm 644 examples/debmirror.conf ${pkgdir}/usr/share/doc/${pkgname}/examples/debmirror.conf
    install -Dm 755 mirror-size ${pkgdir}/usr/lib/${pkgname}/mirror-size
    install -Dm 644 debmirror.1 ${pkgdir}/usr/share/man/man1/debmirror.1
}