summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3603562e8a3f8ff54b18c7dc439d198040ffc720 (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
# Maintainer: <mumei AT airmail DOT cc>

_pkgname=FisicaLab
pkgname=fisicalab.app
pkgrel=1
pkgver=0.3.5
pkgdesc='Become familiar with physical concepts without the risk of getting lost in mathematical details'
arch=('i686' 'x86_64' 'armv7h')
url='https://www.gnu.org/software/fisicalab'
license=('GPL')
groups=('gnustep-apps')
depends=('gnustep-base' 'gnustep-gui' 'gnustep-back' 'gsl')
makedepends=('gcc-objc' 'gnustep-make')
source=("https://ftp.gnu.org/gnu/fisicalab/fisicalab-0.3.5-1.tar.gz")
sha256sums=('a710d5ac8f5a096cbd2972fc42d8861f7996321161f90132c8e67c4704e55bb9')

build() {
  cd "fisicalab-$pkgver"
  export GNUSTEP_MAKEFILES="$(gnustep-config --variable=GNUSTEP_MAKEFILES)"
  ./configure
  make
# Fix Icon Path
  sed -i 's/tiff/tif/;s/í/i/g' FisicaLab.app/Resources/FisicaLab.desktop 
}

package() {
  cd "fisicalab-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 "$pkgdir/usr/lib/GNUstep/Applications/$_pkgname.app/Resources/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
}