summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f8a0e3356b420b74d7442c3d649832d533b46b7 (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
38
39
40
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: sergej

pkgname=fragview-git
_gitname=fragview
pkgver=0.1.3.2.gc0ab8dc
pkgrel=1
pkgdesc="Analyze disk content and files fragmentation by displaying its map"
arch=('x86_64')
url="https://github.com/i-rinat/fragview"
license=('MIT')
depends=('gtkmm3')
makedepends=('git' 'boost' 'sqlite' 'cmake')
optdepends=('sqlite: to open fragmentator.db databases created by fragdb')
source=('git+https://github.com/i-rinat/fragview.git')
sha256sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  git describe --always | sed 's|-|.|g' | sed 's|^v||'
}

build() {
  cd "${_gitname}"
  cmake -DCMAKE_INSTALL_PREFIX="/usr" .
  make
}

package() {
  cd "${srcdir}/${_gitname}"
  make DESTDIR="${pkgdir}" install

  # Add documentation file
  install -d "${pkgdir}/usr/share/doc/${pkgname}"
  install -m 0644 -t "${pkgdir}/usr/share/doc/${pkgname}" "README.md"

  # Add license file
  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m 0644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "LICENSE.MIT"
}