blob: 46fa513a579c01c91a601892753496468f56dedb (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Maintainer:
# Contributor: Arun Narayanankutty <n.arun.lifescience@gmail.com>
## useful links
# http://alphaplot.sourceforge.net/
# https://github.com/narunlifescience/AlphaPlot
## options
: ${_build_git:=false}
[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
## basic info
_pkgname="alphaplot"
pkgname="$_pkgname${_pkgtype:-}"
pkgver=1.02
pkgrel=1
pkgdesc="Application for Scientific Data Analysis and Visualization, fork of SciDavis / QtiPlot"
url="https://github.com/narunlifescience/AlphaPlot"
arch=('i686' 'x86_64')
license=('GPL-2.0-or-later')
# main package
_main_package() {
depends=(
'gsl'
'hicolor-icon-theme'
'qt5-datavis3d'
'qt5-script'
'qt5-svg'
)
makedepends=(
'boost'
'cmake'
'glu'
'qt5-tools'
)
conflicts=(alphaplot-bin)
if [[ "${_build_git::1}" != "t" ]] ; then
_main_stable
else
_main_git
fi
}
# stable package
_main_stable() {
_pkgver="${pkgver%%.r*}"
_pkgsrc="AlphaPlot-$_pkgver"
_pkgext="tar.gz"
source+=("$_pkgname-$_pkgver.$_pkgext"::"$url/archive/refs/tags/$_pkgver.$_pkgext")
sha256sums+=('90952b2036b9d25b31c0c8fb34c47ff700bb2847234dda42d900070fc60d3c61')
pkgver() {
echo "${_pkgver:?}"
}
}
# git package
_main_git() {
makedepends+=('git')
provides+=("$_pkgname=${pkgver%%.r*}")
conflicts+=("$_pkgname")
_pkgsrc="$_pkgname"
source+=("$_pkgsrc"::"git+$url.git")
sha256sums+=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
}
# common functions
build() {
cd "$_pkgsrc"
# Note: PREFIX is not used
qmake
make
}
package() {
cd "$_pkgsrc"
# Note: DESTDIR is ignored
make INSTALL_ROOT="${pkgdir}" install
}
# execute
_main_package
|