summaryrefslogtreecommitdiff
path: root/dd-resume/PKGBUILD
blob: 672907999cc44bd046727fff851a948c2fe6b3a5 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=dd-resume
pkgver=0.2
pkgrel=1
pkgdesc='resumably copy with dd via network'
arch=('any')
url="https://git.eckner.net/Erich/${pkgname}"
license=('GPL')
depends=()
makedepends=('help2man')
source=(
    "https://git.eckner.net/Erich/${pkgname}/snapshot/${pkgname}-${pkgver}.tar.xz"
)
sha512sums=('b92861ea12a6612cd507cf6c4293a7d935ab09d5bd71e7cea44353b97a9d1895e87aff61850f76d31764a4ea3f272c4eceaca8dfce4718403ba859588d751af7')

build() {

    cd ${pkgname}-${pkgver}
    make

}

package() {

    cd ${pkgname}-${pkgver}
    depends+=(
      $(
        ./${pkgname} --required | \
          xargs -rn1 which | \
          xargs -rn1 pacman -Qqo
      )
    )
    make DESTDIR=${pkgdir} install

}