summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3ce9ee064634a459972f128c2215fff0f404373 (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: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=datafilter
pkgver=1.0
pkgrel=1
pkgdesc="A simple program for selection filtering and organization for data in miniSEED format."
arch=("x86_64")
url="https://github.com/iris-edu/${pkgname}"
license=('GPL3')
depends=('libmseed')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('965fd46199f9f2ea19dd1aee2c97e874a9ef02726adc2448b2b3daf2bc235501')

prepare() {
	cd "${pkgname}-${pkgver}/src"
	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 ${pkgname} ${pkgdir}/usr/bin/
	cp doc/${pkgname}.1 ${pkgdir}/usr/share/man/man1/
}
# vim:set ts=4 sw=4: