37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=scantopl
|
|
pkgver=0.0.1
|
|
pkgrel=0
|
|
pkgdesc="Automatically send scanservjs scanned document to paperless-ng"
|
|
_gittag="5c5d71a9e1cf8985d374453c866c1711692334e2"
|
|
url="https://github.com/Celedhrim/scantopl"
|
|
arch="!armv7 all"
|
|
license="WTFPL"
|
|
makedepends="go yarn"
|
|
subpackages="$pkgname-openrc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/Celedhrim/scantopl/archive/$_gittag.tar.gz
|
|
scantopl.initd
|
|
scantopl.conf
|
|
"
|
|
builddir="$srcdir/$pkgname-$_gittag"
|
|
options="!check" # No testsuite
|
|
|
|
build() {
|
|
export GOPATH="$srcdir/go"
|
|
go build scantopl.go
|
|
go clean -modcache
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "$builddir"/scantopl "$pkgdir"/usr/bin/scantopl
|
|
install -Dm755 "$srcdir"/scantopl.initd "$pkgdir"/etc/init.d/scantopl
|
|
install -Dm644 "$srcdir"/scantopl.conf "$pkgdir"/etc/conf.d/scantopl
|
|
}
|
|
sha512sums="
|
|
f47823ffdea68de71ce9f3a347f31eee3556aae2087f68d2cf4078b9694894d06fc8de94e806ad34358e0ec636ace6dc5d97273c3102192584cb540ede3bd288 scantopl-0.0.1.tar.gz
|
|
8238411fe8881be6690a583a6bfc71e52f3131320f5d92bb36f8af61802980265a8cf5250eb699d9214f7c6c168d14c39867a09587fb07841a8504a6a28db74b scantopl.initd
|
|
ee2e631901b1d88c0dede6587318e44884255a7c82e090371f017dbb91563c16f0567c0d45b3183d0a8abb3ee4b71a33f3d79258ad2b2f6d8930a5bc7625070a scantopl.conf
|
|
"
|