summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 089b5e9aa4dfbc6344694f5de82c6fafe38647f9 (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
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=sac2mseed
pkgver=1.13
pkgrel=1
pkgdesc="Convert SAC seismic time series to miniSEED."
arch=("x86_64")
url="https://github.com/iris-edu/sac2mseed"
license=('GPL3')
depends=('libmseed')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('bffbf98acdae1599d0047b9f813b5946d71bd6788c65467969e81db689b89c95')

prepare() {
  cd "${pkgname}-${pkgver}/src"
  sed -i 's|GCCFLAGS = -O2 -Wall -I../libmseed||' Makefile
  sed -i 's|REQCFLAGS = -I../libmseed||' Makefile
  sed -i 's|LDFLAGS = -L../libmseed||' Makefile
}

build() {
	cd "${pkgname}-${pkgver}/src"
	make
}

package() {
	cd "${pkgname}-${pkgver}"
	install -d ${pkgdir}/usr/{bin,share/man/man1}
	cp sac2mseed ${pkgdir}/usr/bin/
	cp doc/sac2mseed.1 ${pkgdir}/usr/share/man/man1/
}
# vim:set ts=4 sw=4: