summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dabec42d8aa3296f738174531c776ad46469151c (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
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=mseedindex
pkgver=2.7.1
pkgrel=1
pkgdesc="A Simple program for synchronizing a miniSEED file with a database."
arch=("x86_64")
url="https://github.com/iris-edu/mseedindex"
license=('GPL3')
depends=('libmseed' 'postgresql-libs' 'sqlite')
optdepends=('postgresql: for using PostgreSQL database')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('223bc89a6eff75fed86f0b730504a35a2d96241db72eb5c558aa5b251a799da9')

prepare() {
	cd "${pkgname}-${pkgver}/src"
	sed -i 's|EXTRACFLAGS = -I../libmseed -I../sqlite||' Makefile
	sed -i 's|EXTRA -I../sqlite||' Makefile
	sed -i 's|EXTRALDFLAGS = -L../libmseed -I../sqlite||' Makefile
	sed -i 's|../sqlite/sqlite3.c||' Makefile
	sed -i 's|LDLIBS = -lmseed -lpq|LDLIBS = -lmseed -lpq -lsqlite3|' Makefile
}

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

package() {
	cd "${pkgname}-${pkgver}"
	install -D -t "${pkgdir}/usr/bin/" -m 755 mseedindex
	install -D -t "${pkgdir}/usr/share/man/man1/" -m 644 doc/mseedindex.1
}
# vim:set ts=4 sw=4: