summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9fe5e04376eef84f5a43f7f584437b7a47c5759 (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
41
42
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
pkgname=fpocket-git
pkgver=r93.c530900
pkgrel=1
pkgdesc="Fpocket is a very fast open source protein pocket detection algorithm based on Voronoi tessellation"
arch=('i686' 'x86_64')
license=('MIT')
url="https://github.com/Discngine/fpocket"
depends=('netcdf' 'vmd-molfile-plugins')
makedepends=('git' 'patch' 'gcc')
source=("$pkgname::git+https://github.com/Discngine/fpocket.git"
        "fpocket.patch")
sha1sums=('SKIP'
          'b6a1d7dc414c0a66fca8eeb55cb6f432c589f3b8')

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

prepare() {
  cd ${pkgname}
  patch -Np0 -i "${srcdir}/fpocket.patch"
}

build() {
  cd ${pkgname}
  
  make
}

package() {
  cd ${pkgname}

  install -Dm755 bin/fpocket ${pkgdir}/usr/bin/fpocket
  install -Dm755 bin/dpocket ${pkgdir}/usr/bin/dpocket
  install -Dm755 bin/tpocket ${pkgdir}/usr/bin/tpocket
  install -Dm755 bin/mdpocket ${pkgdir}/usr/bin/mdpocket
  install -Dm644 man/fpocket.8 ${pkgdir}/usr/share/man/man8/fpocket.8
  install -Dm644 man/dpocket.8 ${pkgdir}/usr/share/man/man8/dpocket.8
  install -Dm644 man/tpocket.8 ${pkgdir}/usr/share/man/man8/tpocket.8
}