summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c348c7ac884952b39e82486b0b81631a6b53a478 (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
36
37
# Maintainer: GI_Jack <GI_Jack@hackermail.com>

pkgname=fatcat
pkgver=1.1.1
pkgrel=1
pkgdesc=" FAT filesystems explore, extract, repair, and forensic tool"
arch=('i686' 'x86_64')
url="https://github.com/Gregwar/fatcat"
license=('BSD')
makedepends=('cmake')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/Gregwar/fatcat/archive/v${pkgver}.tar.gz")
sha256sums=('5574f715f62a9feda7fffc8099f8bca7134ff4f1274bb1bc0db96a2969eea206')

build() {
  cd ${pkgname}-${pkgver}
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
  make
}

package() {
  cd "$pkgname-$pkgver/build"
  make DESTDIR="$pkgdir/" prefix=/usr install
  cd ..
  mkdir -p ${pkgdir}/usr/share/fatcat/

  # install man page
  install -Dm644 man/fatcat.1 "${pkgdir}/usr/share/man/man1/fatcat.1"
  # install license
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/fatcat/LICENSE"
  # copy source code
  cp -r src ${pkgdir}/usr/share/fatcat/src
  # copy other docs
  cp -r docs ${pkgdir}/usr/share/fatcat/docs
}