blob: 2d07a4980b58aebda11ac18e359ef15eaffd3c0d (
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: Wu Junyu (aka Tenshi65535) <wu.junyu.aur@outlook.com>
# Maintainer: Dan McCurry <dan.mccurry at linux dot com>
pkgname=qsoas
pkgver=3.1
pkgrel=1
pkgdesc="Open-source software developed to analyze electrochemical data and other one-dimensional signals."
arch=('x86_64')
url="https://bip.cnrs.fr/groups/bip06/software/"
license=('GPL2')
depends=('mruby' 'gsl' 'qt5-base' 'qt5-tools')
makedepends=('ruby')
provides=('qsoas')
conflicts=('qsoas')
install=
source=("https://bip.cnrs.fr/wp-content/uploads/qsoas/${pkgname}-${pkgver}.tar.gz"
"${pkgname}.desktop")
md5sums=('661ef55a4de1e4bddaeaaa3f0256ee25'
'05857d790bc8bb91efcaf95f72ec2d7a')
build() {
cd "$pkgname-$pkgver"
sed -r -i "s:MRUBY_RELEASE_MAJOR == 2:MRUBY_RELEASE_MAJOR >= 2:g" ./src/mruby.cc
sed -r -i "s:struct mrb_irep \*:const &:g" ./src/mruby.cc
sed -r -i "s:lv\[i\]\.name:lv\[i\]:g" ./src/mruby.cc
sed -r -i "433,440s:.:\/\/&:" ./src/mruby.cc
sed -r -i "500,501s:.:\/\/&:" ./src/mruby.cc
sed -r -i "505,506s:.:\/\/&:" ./src/mruby.cc
sed -r -i "s:OP_RAISE:OP_RAISEIF:g" ./src/mruby.cc
qmake-qt5
make
}
package() {
cd "$pkgname-$pkgver"
install -Dm644 ../${pkgname}.desktop \
${pkgdir}/usr/share/applications/${pkgname}.desktop
install -Dm644 ./QSoas-logo.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png
install -Dm755 ./QSoas ${pkgdir}/usr/bin/${pkgname}
}
|