summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd8241b6df4ede57b3440e9d8148d66296802f66 (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
# Maintainer Ayakael (Antoine Martin) <antoine.martin@protonmail.com>

pkgname=hfsprescue-bin
_pkgname=hfsprescue
pkgver="3.3"
pkgrel=1
pkgdesc="A program to recover hfs+ file systems"
url="https://www.plop.at/en/hfsprescue/full.html"
arch=('i686' 'x86_64')
license=('GPL2')
source=(
"https://download.plop.at/hfsprescue/hfsprescue-${pkgver}-precompiled.tar.gz"
"LICENSE"
)
sha256sums=(
'e59087d60800c683343179b2b53880f4a9987da59ea1f527436ec71b0793c9db'
'8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643'
)

package() {
       	if [ ${CARCH} == "i686" ]; then
               install -Dm755 "$srcdir/hfsprescue-${pkgver}-precompiled/Linux/hfsprescue_x32" "$pkgdir/usr/bin/hfsprescue"
       	elif [ ${CARCH} == "x86_64" ]; then
               install -Dm755 "$srcdir/hfsprescue-${pkgver}-precompiled/Linux/hfsprescue_x64" "$pkgdir/usr/bin/hfsprescue"
       	fi

	install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"	
}