You are not logged in.

#1 2022-09-07 05:45:12

Scottyaewsome
Member
Registered: 2022-09-07
Posts: 3

Solved -- PKGBUILD review request: brother-mcf-j1205w-lpr-bin

# Maintainer: Scott Brown <scott.brown3558@gmail.com>

pkgname=brother-mcf-j1205w-lpr-bin
pkgver=1.0.0
pkgrel=1
pkgdesc="Linux printer driver for Brother MCF-J1205W"
arch=("i686" "x86_64")
url="https://support.brother.com/g/b/producttop.aspx?c=ca&lang=en&prod=mfcj1205w_us"
license=("EULA")
groups=("base-devel")
source=("https://download.brother.com/welcome/dlf105289/mfcj1205wpdrv-3.5.0-1.i386.deb")
md5sums=("a3d11827f363c05d162d83acd2f44642")

package() {
        tar -xf data.tar.gz -C "${pkgdir}"
}

------------------------------------------------------------------------

Hey, submitting my first AUR build and I thought I'd post it for review.
Here is the link for the drivers. One question, about the drivers on this page. there's a driver package with .gz, the guide said to use the .deb files but if we're able to use the .gz it could all be done with one pkgbuild. otherwise if this checks out ill make a pkgbuilds for the scanner drivers too.
https://support.brother.com/g/b/downloa … _us&os=128

Thanks!

Last edited by Scottyaewsome (2022-09-09 14:21:54)

Offline

#2 2022-09-07 10:57:08

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,411

Re: Solved -- PKGBUILD review request: brother-mcf-j1205w-lpr-bin

license=("EULA")

EULA is not a valid license type, you probably should use custom and copy the license to the correct location in package() .
see https://wiki.archlinux.org/title/PKGBUILD#license

The download is for i386 / 32-bit systems, to get it to work on x86_64 usually some packages from multilib (starting with lib32) are needed in depends .

groups=("base-devel") that's a group in repos containing stuff needed to build other packages.
groups are not very common for aur packages, but if one is desired atleast choose one that's appropriate.

One question, about the drivers on this page. there's a driver package with .gz, the guide said to use the .deb files but if we're able to use the .gz it could all be done with one
pkgbuild.

you're referring to the "Driver Install Tool" ?
Those are typically intended for per-user installation and require user input.
They're very hard to use for PKGBUILD which are for systemwide installs and should not need any user input.

You should also check where the extracted files go to.
Debian and archlinux differ in what goes to /usr and what goes to /opt .

Welcome to archlinux forums


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-09-07 13:12:14

Scottyaewsome
Member
Registered: 2022-09-07
Posts: 3

Re: Solved -- PKGBUILD review request: brother-mcf-j1205w-lpr-bin

Thanks Lone_Wolf, I skimmed the wiki to see a couple things I didn't understand but skipped the license part. when making this I followed the brother pkgbuild guide, I wonder if I should post revision to the license section on the page or at least dig into the reason. 
"You will need to adjust the package name. Change url= to the URL of Brother's support page for your specific printer model, source= needs to be adjusted to the URL of the .deb package. The following PKGBUILD example has been based on brother-hll8360cdw-cups-binAUR but has been adjusted for HL-L9200CDW LPR printer driver: "

I don't know how to quote.. but yes, the driver install tool.

Offline

#4 2022-09-09 09:15:58

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,411

Re: Solved -- PKGBUILD review request: brother-mcf-j1205w-lpr-bin

That page looks old and is not part of archlinux package guidelines, but it's a start.

The scanner part is probably easier and won't require writing a new pacakge, as brother grouped their scanners drivers under brscan* .
Check https://wiki.archlinux.org/title/SANE/S … ms#Brother


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2022-09-09 14:19:34

Scottyaewsome
Member
Registered: 2022-09-07
Posts: 3

Re: Solved -- PKGBUILD review request: brother-mcf-j1205w-lpr-bin

Thanks for the info. I thought I'd try the PKGBUILD as it was and it seems to have worked, I was able to print a test sheet from my desktop and laptop with the same build file. I'll figure out how to push it to the AUR now.

Thanks for the sanner page, I just started looking into that.

Offline

Board footer

Powered by FluxBB