mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 19:06:55 +02:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Contributor: Miles Alan <m@milesalan.com>
|
|
# Maintainer: Miles Alan <m@milesalan.com>
|
|
pkgname=mobroute
|
|
pkgver=0.9.0
|
|
pkgrel=4
|
|
pkgdesc="General-Purpose FOSS Public Transportation (GTFS) Router CLI"
|
|
options="net"
|
|
url="https://sr.ht/~mil/mobroute"
|
|
license="GPLv3.0-or-later"
|
|
arch="all !x86" # x86 fails tests due to sqlite driver bug: https://github.com/mattn/go-sqlite3/issues/1241
|
|
makedepends="go sqlite-dev"
|
|
depends="tzdata"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/mobroute/archive/v$pkgver.tar.gz
|
|
"
|
|
builddir="$srcdir/mobroute-v$pkgver"
|
|
subpackages="$pkgname-doc"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
./build.sh build
|
|
}
|
|
|
|
check() {
|
|
./build.sh test
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 $pkgname -t "$pkgdir"/usr/bin
|
|
cd doc
|
|
find . -type f -exec install -Dm 644 {} "$pkgdir/usr/share/doc/$pkgname/{}" \;
|
|
}
|
|
|
|
sha512sums="
|
|
334384a88440d079c26de5738a127641fc7a72103e9564ca0b37717adf7f5e35d16ca6b72e65b2eecb29b65d746e2dcae301caa48c088e7bedd71030a85c8f63 mobroute-0.9.0.tar.gz
|
|
"
|