summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e2b2d359d18d5c619be9bfbd83a74bf2345bbff (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: Frede Hundewadt <fh@uex.dk>

pkgname=piclone-git
pkgver=r146.71b0bcb
pkgrel=1
pkgdesc="Raspberry Pi system clone utility"
arch=(x86_64 i686 armv7h aarch64)
url="https://github.com/raspberrypi-ui/piclone"
license=(GPL2)
depends=(gtk3 glib2 parted dosfstools e2fsprogs coreutils util-linux zenity dbus gvfs)
makedepends=(git intltool)
source=("git+https://github.com/raspberrypi-ui/piclone.git")
sha256sums=('SKIP')

pkgver() {
    cd piclone
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd piclone
    ./autogen.sh
}

build() {
    cd piclone
    ./configure --prefix=/usr
    make
}

package() {
    cd piclone
    make DESTDIR="${pkgdir}/" install
    install -D -t "${pkgdir}/usr/lib/piclone/" data/pwdpic.sh
}