summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8745edd8ecbbf8de797b5e551329170d041d8fa (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: Thomas Weingartner <tom@weingoworks.com>
pkgname=flooxs
pkgver=2024.0.0
pkgrel=1
pkgdesc="FLorida Object-Oriented Process/Device Simulator"
arch=('x86_64')
url="https://flooxs.org/"
options=(!lto)
license=('Special')
depends=(
  'plplot'
  'suitesparse'
)
source=("${pkgname}-${pkgver}-Linux.tar.gz::http://flooxs.org/packages/${pkgname}-${pkgver}-Linux.tar.gz")
sha256sums=('e6f4329f6b5826d01e3093fcf5cf576d130d6ca54db8e4b658bd0dd94efd6e68')

# build() {
#   export GOPATH="$srcdir"/gopath
#   export CGO_CPPFLAGS="${CPPFLAGS}"
#   export CGO_CFLAGS="${CFLAGS}"
#   export CGO_CXXFLAGS="${CXXFLAGS}"
#   export CGO_LDFLAGS="${LDFLAGS}"
#   export CGO_ENABLED=1
# 
#   cd "$srcdir/$pkgname-$pkgver"
#   make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" build
# }

package() {
  cd "$srcdir/$pkgname-$pkgver-Linux"
  install -d $pkgdir/usr/bin
  install bin/flooxs $pkgdir/usr/bin
  for i in $(find share -type f)
  do
          install -d $pkgdir/usr/$(dirname $i)
          install -m 644 $i $pkgdir/usr/$(dirname $i)
  done
  # cp $startdir/install.sh .
  # ./install.sh
}