Adds the package for monitoring networked Brother scanners for button presses.
51 lines
953 B
Bash
51 lines
953 B
Bash
# Maintainer: Michael Kuc <michaelkuc6 at gmail dot com>
|
|
_pkgname=brother-scand
|
|
pkgname=${_pkgname}-git
|
|
pkgver=v0.0.1
|
|
pkgrel=1
|
|
epoch=
|
|
pkgdesc="Network driver for Brother scanner devices. Daemon for press-to-scan functionality."
|
|
arch=('x86_64')
|
|
url="https://github.com/rumpeltux/brother-scand"
|
|
license=('unknown')
|
|
groups=()
|
|
depends=()
|
|
makedepends=()
|
|
optdepends=()
|
|
provides=($_pkgname)
|
|
conflicts=($_pkgname)
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
install='brother-scand.install'
|
|
changelog=
|
|
source=(
|
|
'git+https://github.com/rumpeltux/brother-scand.git'
|
|
'Makefile.patch'
|
|
'brother-scand.install'
|
|
)
|
|
noextract=()
|
|
md5sums=(
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP'
|
|
)
|
|
|
|
prepare() {
|
|
cd "$srcdir/$_pkgname"
|
|
patch -p1 -i "$srcdir/Makefile.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgname"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgname"
|
|
install -dm0755 "$pkgdir/usr/bin"
|
|
install -dm0755 "$pkgdir/etc/systemd/system"
|
|
install -dm0755 "$pkgdir/etc/rsyslog.d"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|