Compare commits

..
10 Commits
4 changed files with 33 additions and 18 deletions

No files matched your search

+7 -8
View File
@@ -1,7 +1,7 @@
pkgbase = brscan4 pkgbase = brscan4
pkgdesc = SANE drivers from Brother for brscan4 compatible models pkgdesc = SANE drivers from Brother for compatible models
pkgver = 0.4.10_1 pkgver = 0.4.11_1
pkgrel = 4 pkgrel = 5
url = http://support.brother.com url = http://support.brother.com
install = brscan4.install install = brscan4.install
arch = i686 arch = i686
@@ -9,13 +9,12 @@ pkgbase = brscan4
license = GPL license = GPL
license = custom:Brother license = custom:Brother
depends = sane depends = sane
depends = libusb-compat optdepends = gtk2: for using brscan_gnetconfig
source = https://download.brother.com/welcome/dlf006648/brscan4-0.4.10-1.x86_64.rpm source = https://download.brother.com/welcome/dlf105203/brscan4-0.4.11-1.x86_64.rpm
source = agree.html source = agree.html
source = mk-udev-hwdb source = mk-udev-hwdb
md5sums = f4c4d1f214d4c42a6d40f5451fc40312 md5sums = 54dec75887de091fde5fcd511d9a57c3
md5sums = ccffb9a6f6d436b21be25b0241068981 md5sums = ccffb9a6f6d436b21be25b0241068981
md5sums = 4a69fac9c0053277a9be8e2dd382f168 md5sums = b4a328d229b1614774340695577b67af
pkgname = brscan4 pkgname = brscan4
@@ -0,0 +1,15 @@
name: Build package
on: [push]
jobs:
build-package:
runs-on: pkgbuilder
env:
steps:
- name: Build and push package
uses: https://gitea.konchin.com/action/archbuild@main
with:
minio-accesskey: ${{ secrets.MINIO_ACCESSKEY }}
minio-secretkey: ${{ secrets.MINIO_SECRETKEY }}
gpg-password: ${{ secrets.GPG_PASSWORD }}
gpg-keygrip: ${{ secrets.GPG_KEYGRIP }}
+9 -8
View File
@@ -2,22 +2,23 @@
license=('GPL' 'custom:Brother') license=('GPL' 'custom:Brother')
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
pkgname=brscan4 pkgname=brscan4
pkgver=0.4.10_1 pkgver=0.4.11_1
pkgrel=5 pkgrel=5
pkgdesc="SANE drivers from Brother for brscan4 compatible models" pkgdesc="SANE drivers from Brother for compatible models"
depends=('sane' 'libusb-compat') depends=('sane')
optdepends=('gtk2: for using brscan_gnetconfig')
url="http://support.brother.com" url="http://support.brother.com"
install=brscan4.install install=brscan4.install
[ "$CARCH" = "x86_64" ] && pkg="dlf006648/${pkgname}-${pkgver/_/-}.x86_64.rpm" || pkg="dlf006647/${pkgname}-${pkgver/_/-}.i386.rpm" [ "$CARCH" = "x86_64" ] && _pkg="dlf105203/${pkgname}-${pkgver/_/-}.x86_64.rpm" || _pkg="dlf105202/${pkgname}-${pkgver/_/-}.i386.rpm"
[ "$CARCH" = "x86_64" ] && pkg_md5sum="f4c4d1f214d4c42a6d40f5451fc40312" || pkg_md5sum="365f1b82ac3b7de73950be76a621bb93" [ "$CARCH" = "x86_64" ] && _pkg_md5sum="54dec75887de091fde5fcd511d9a57c3" || _pkg_md5sum="dc87c907c9a2f086dcc56eb2e8fafbbc"
source=("https://download.brother.com/welcome/$pkg" source=("https://download.brother.com/welcome/$_pkg"
"agree.html" "agree.html"
mk-udev-hwdb) mk-udev-hwdb)
md5sums=($pkg_md5sum md5sums=($_pkg_md5sum
'ccffb9a6f6d436b21be25b0241068981' 'ccffb9a6f6d436b21be25b0241068981'
'8966d38375d535028a63a6ef5f6104eb') 'b4a328d229b1614774340695577b67af')
build() { build() {
cd "$srcdir" cd "$srcdir"
+2 -2
View File
@@ -4,8 +4,8 @@ BEGIN {
print "# brscan4-supported scanners (or interfaces of MFD)"; print "# brscan4-supported scanners (or interfaces of MFD)";
print ""; print "";
} }
NF >= 3 && $1 ~ /^0[xX][[:xdigit:]]{4}$/ { NF >= 3 && $1 ~ /^0[xX][[:xdigit:]]+$/ {
id = toupper( substr( $1, 3 )); id = toupper( substr( $1, length($1) - 3 ));
name = $4 name = $4
gsub("\"", "", name) gsub("\"", "", name)
print "# " name; print "# " name;