summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a179d552795804ac7756af6c33de8981fab84a4 (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
# Maintainer: effeffe <filippo dot falezza at outlook dot it>

pkgname=specfitter-git
_pkgname=SpecFitter
pkgver=r272.114dab2
pkgrel=1
arch=('any')
pkgdesc='A program for gamma-ray spectroscopy or similar data analysis'
url='https://e-j-w.github.io/specfitter.html'
license=('GPL3')
depends=('gtk3')
source=(
  "git+https://github.com/e-j-w/SpecFitter.git"
  "specFitter.install"
)
sha256sums=(
  'SKIP'
  '7cb2699788cdc2bccb9d4cd5a7dc5addd5e6da6eab16e82d23f755b712b2c900'
)
install="specFitter.install"

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  make
}
package() {
  cd "${srcdir}/${_pkgname}"

  install -D -m755 specfitter ${pkgdir}/usr/bin/specfitter
  install -D -m644 data/specfitter-application-icon.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/specfitter-application-icon.svg
  install -D -m755 data/specfitter.desktop ${pkgdir}/usr/share/applications/specfitter.desktop
  install -D -m644 data/specfitter-mime.xml ${pkgdir}/usr/share/mime/packages/specfitter-mime.xml
}