summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7dd0a90aa49153333a3c32f875ea6bdadf17f570 (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.2"
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=(
'83269af382db8ef7880f6c8aa4c3d1f960ea0a2d05571d1c8f182389cf6e6501'
'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"	
}