Skip to content

Instantly share code, notes, and snippets.

@noqisofon
Created February 11, 2014 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noqisofon/8930717 to your computer and use it in GitHub Desktop.
Save noqisofon/8930717 to your computer and use it in GitHub Desktop.
brother-dcpj132n-lpr は無事にインストールでけた!! が……
pkgname=brother-dcpj132n-lpr
pkgver=3.0.0_1
pkgrel=1
pkgdesc='LPR driver for Brother ink printer DCP-J132N'
arch=('i686' 'x86_64')
url='http://solutions.brother.co.jp'
license=('LGPL')
depends=('cups')
makedepends=('rpmextract')
source=("http://solutions.brother.co.jp/support/os/linux/dlf/dcpj132nlpr-${pkgver/_/-}.i386.rpm")
md5sums=('7b8294ff47a6a570fe5cdf78f032bf90')
build() {
cd "$srcdir"
rpmextract.sh "dcpj132nlpr-${pkgver/_/-}.i386.rpm"
}
package() {
cd "$srcdir"
find . -type f | while read file
do
local newfile="${pkgdir}/${file}"
install -DT "$file" "$newfile"
done
chmod a+w "${pkgdir}/opt/brother/Printers/dcpj132n/inf/brdcpj132nrc"
chmod a+w "${pkgdir}/opt/brother/Printers/dcpj132n/inf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment