summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrás Wacha2016-11-09 09:51:17 +0100
committerAndrás Wacha2016-11-09 09:51:17 +0100
commit16716472e22c9caae0cb084c155371a13292d032 (patch)
tree32ce793717c67828737bcaf88de6760cd143b6db
parentdbe6a6600b93f803de2c95cea4821342860bbe42 (diff)
downloadaur-sasfit.tar.gz
Correcting previous commit
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD16
2 files changed, 16 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9811f058b11..585a002db14 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = sasfit
pkgdesc = A program for fitting structural models to small angle scattering data
pkgver = 0.94.7
- pkgrel = 2
+ pkgrel = 3
url = https://kur.web.psi.ch/sans1/SANSSoft/sasfit.html
arch = x86_64
arch = i686
license = GPL
makedepends = cmake>=2.8.0
+ makedepends = imagemagick
depends = gsl
depends = tcl>=8.4
depends = libxrender
@@ -17,8 +18,10 @@ pkgbase = sasfit
options = !strip
source = https://github.com/SASfit/SASfit/releases/download/v0.94.7/SASfit-0.94.7_source.tar.gz
source = sasfit.patch
+ source = sasfit.desktop
md5sums = d563765b90c2826cda5b912e10d699e9
md5sums = cd01d5f14b3028ce67c18e475e4d713d
+ md5sums = 319e51dc73bf05f19895a3c94728aa84
pkgname = sasfit
diff --git a/PKGBUILD b/PKGBUILD
index 9c5ea2aaa52..d6140c36c7a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,20 +3,22 @@
# Maintainer: András Wacha <awacha@gmail.com>
pkgname=sasfit
pkgver=0.94.7
-pkgrel=2
+pkgrel=3
pkgdesc="A program for fitting structural models to small angle scattering data"
arch=('x86_64' 'i686')
url="https://kur.web.psi.ch/sans1/SANSSoft/sasfit.html"
license=('GPL')
-makedepends=('cmake>=2.8.0')
+makedepends=('cmake>=2.8.0' 'imagemagick')
depends=('gsl' 'tcl>=8.4' 'libxrender' 'libxfixes' 'f2c' 'fftw' 'sundials')
# don't strip the executables, it breaks them.
options=("!strip")
source=("https://github.com/SASfit/SASfit/releases/download/v${pkgver}/SASfit-${pkgver}_source.tar.gz"
- "sasfit.patch")
+ "sasfit.patch"
+ "sasfit.desktop")
md5sums=('d563765b90c2826cda5b912e10d699e9'
- 'cd01d5f14b3028ce67c18e475e4d713d')
+ 'cd01d5f14b3028ce67c18e475e4d713d'
+ '319e51dc73bf05f19895a3c94728aa84')
prepare() {
cd "${srcdir}/SASfit-${pkgver}"
@@ -37,10 +39,16 @@ package() {
# mkdir -p "$pkgdir/usr/include/sasfit"
mkdir -p "$pkgdir/usr/lib/sasfit/plugins"
mkdir -p "$pkgdir/usr/bin"
+ for res in 128 16 192 20 22 24 256 32 36 384 40 48 64 72 96; do
+ mkdir -p "$pkgdir/usr/share/icons/hicolor/${res}x${res}/apps"
+ convert "${srcdir}/SASfit-${pkgver}/doc/images/sasfit_icon_base.png" -resize ${res}x${res} "$pkgdir/usr/share/icons/hicolor/${res}x${res}/apps/sasfit.png"
+ done
+ mkdir -p "$pkgdir/usr/share/applications"
cp ${distdir}/*.so "$pkgdir/usr/lib/sasfit/plugins"
cp ${distdir}/*.h "$pkgdir/usr/lib/sasfit/plugins"
cp ${distdir}/sasfit "$pkgdir/usr/lib/sasfit"
cp ${distdir}/{CHANGES.txt,KNOWN_BUGS.txt,Readme.txt,sasfit.bib,sasfit.pdf,test.dat,groups_example.def,config.ini} "$pkgdir/usr/share/doc/sasfit"
+ cp "${srcdir}/sasfit.desktop" "$pkgdir/usr/share/applications"
cat >${pkgdir}/usr/bin/sasfit <<EOF
#!/bin/sh
cd /usr/lib/sasfit