blob: aab74356eaa72b9bdf32074ecc227fd3c372c9e3 (
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
43
|
# Maintainer: Matthijs Tadema <M dot J dot Tadema at pm dot me>
pkgname=hole2-git
pkgver=v2.004pre.r24.ba82cfc
pkgrel=2
pkgdesc="Analyzes the pore dimensions of ion channels"
arch=('x86_64')
url='https://github.com/osmart/hole2'
license=('Apache')
depends=('gcc-libs')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/osmart/hole2.git'
"${pkgname%-git}.patch")
md5sums=('SKIP'
'6443d83cc884f733094dddba7b279314')
# Compiling didn't work for me on multiple processors
MAKEFLAGS=${MAKEFLAGS/-j[0-9]*/-j1}
pkgver() {
cd "$srcdir/${pkgname%-git}"
# Git, tags available
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
patch -p1 -i "$srcdir/${pkgname%-git}.patch"
}
build() {
cd "$srcdir/${pkgname%-git}/src"
make
}
package() {
cd "$srcdir/${pkgname%-git}"
bash tarball.sh
mkdir -p $pkgdir/opt/
cd $pkgdir/opt/
tar -xf ${srcdir}/${pkgname%-git}/"${pkgname%-git}-`uname`-`uname -m`.tar.gz"
rm ${srcdir}/${pkgname%-git}/"${pkgname%-git}-`uname`-`uname -m`.tar.gz"
}
|