summaryrefslogtreecommitdiff
path: root/dd-resume/PKGBUILD
blob: 6f0353c4e89964e0d7214edf8b1ec13e2fb4fda3 (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.3
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=('6b169b0944cc6e6676e4cdf059de0df78d4af403e157b880ceb8a4754aa2fc183055ddec20a7af7ef2865d91f7c99c3e5e986fff5c74445a425efa973ecd6ed6')

build() {

    cd ${pkgname}-${pkgver}
    make

}

package() {

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

}