40 lines
1.5 KiB
Text
40 lines
1.5 KiB
Text
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
|
|
||
|
pkgname=scantopl
|
||
|
pkgver=0.0.1
|
||
|
_gittag="5c5d71a9e1cf8985d374453c866c1711692334e2"
|
||
|
pkgrel=1
|
||
|
pkgdesc="Automatically send scanservjs scanned document to paperless-ng"
|
||
|
url="https://github.com/Celedhrim/scantopl"
|
||
|
arch="x86_64"
|
||
|
license="none"
|
||
|
makedepends="go yarn"
|
||
|
subpackages="$pkgname-openrc"
|
||
|
source="
|
||
|
$pkgname-$pkgver.tar.gz::https://github.com/Celedhrim/scantopl/archive/$_gittag.tar.gz
|
||
|
0001-change-prefix-to-scan.patch
|
||
|
scantopl.initd
|
||
|
scantopl.conf
|
||
|
"
|
||
|
builddir="$srcdir/$pkgname-$_gittag"
|
||
|
options="!check"
|
||
|
|
||
|
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
|
||
|
5047906abc17e93eca5ed62d2fa341be097693aa7b4426650ad00d9d0a67afbc3b0bdf38610d58eef26e7e2644a3c784b433245ef425e2a5ca81b8def45a3445 0001-change-prefix-to-scan.patch
|
||
|
8238411fe8881be6690a583a6bfc71e52f3131320f5d92bb36f8af61802980265a8cf5250eb699d9214f7c6c168d14c39867a09587fb07841a8504a6a28db74b scantopl.initd
|
||
|
ee2e631901b1d88c0dede6587318e44884255a7c82e090371f017dbb91563c16f0567c0d45b3183d0a8abb3ee4b71a33f3d79258ad2b2f6d8930a5bc7625070a scantopl.conf
|
||
|
"
|