add nvidia-led perl-router-simple riccoh-sp112-ppd
This commit is contained in:
parent
4167f6237e
commit
5a78bee63b
|
@ -0,0 +1,39 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=nvidia-led
|
||||
pkgver=1.0.0
|
||||
pkgrel=02
|
||||
pkgdesc="Awesome effects for NVIDIA GeForce GTX LEDs"
|
||||
url="https://github.com/Madh93/nvidia-led"
|
||||
#makedepends=('git')
|
||||
provides=("$pkgname")
|
||||
conflicts=("$pkgname")
|
||||
source=("https://github.com/Madh93/nvidia-led/archive/v$pkgver.tar.gz")
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
depends=('git' 'nvidia-utils>=331.38' 'nvidia-settings')
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
install -Dm 755 $pkgname.sh ${pkgdir}/usr/bin/$pkgname
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('GPL3')
|
||||
|
||||
sha256sums=(f97b93dd48448f17b4a4cd1dc7d59bea52bca18202c5a985a24369dc4bdc6a69) # v1.0.0.tar.gz
|
||||
|
||||
## 1e958111940eba2b48af2086e3c5d9065cf466e4692c7012dca9a9210cf4ac03 nvidia-led-1.0.0-02-x86_64.pkg.tar.lz
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Miguel Hernandez <michelangelo93@gmail.com.com>
|
||||
pkgname=nvidia-led
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="Awesome effects for NVIDIA GeForce GTX LEDs"
|
||||
arch=(any)
|
||||
url="https://github.com/Madh93/nvidia-led"
|
||||
license=('GPL3')
|
||||
depends=('git'
|
||||
'nvidia-utils>=331.38')
|
||||
makedepends=('git')
|
||||
provides=("$pkgname")
|
||||
conflicts=("$pkgname")
|
||||
source=("https://github.com/Madh93/nvidia-led/archive/v$pkgver.tar.gz")
|
||||
md5sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
install -Dm 755 $pkgname.sh ${pkgdir}/usr/bin/$pkgname
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,v1.0.0*.tar.gz}
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m1.428s
|
||||
user 0m1.254s
|
||||
sys 0m0.317s
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=perl-router-simple
|
||||
pkgver=0.17
|
||||
pkgrel=02
|
||||
pkgdesc="simple HTTP router"
|
||||
options=('!emptydirs')
|
||||
depends=('perl-class-accessor-lite' 'perl')
|
||||
makedepends=(perl-class-accessor-lite perl-module-build)
|
||||
url='https://metacpan.org/release/Router-Simple'
|
||||
source=('http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Router-Simple-0.17.tar.gz')
|
||||
_distdir="Router-Simple-0.17"
|
||||
|
||||
build() {
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
|
||||
PERL_AUTOINSTALL=--skipdeps \
|
||||
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
|
||||
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
|
||||
MODULEBUILDRC=/dev/null
|
||||
|
||||
cd "$srcdir/$_distdir"
|
||||
/usr/bin/perl Build.PL
|
||||
/usr/bin/perl Build
|
||||
)
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$_distdir"
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
||||
/usr/bin/perl Build test
|
||||
)
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_distdir"
|
||||
/usr/bin/perl Build install
|
||||
|
||||
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
||||
}
|
||||
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('PerlArtistic' 'GPL')
|
||||
|
||||
sha256sums=(334615620f38eee15620ccdbf2dbd8b0a403ba1610e5b27d51737d8b0fb0c89d) # Router-Simple-0.17.tar.gz
|
||||
|
||||
## 94caf917a28832038493cbb70bba7071d96b0e29ad0ea542d23ddbbdb9fc5fea perl-router-simple-0.17-02-x86_64.pkg.tar.lz
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
|
||||
# Generator : CPANPLUS::Dist::Arch 1.32
|
||||
|
||||
pkgname='perl-router-simple'
|
||||
pkgver='0.17'
|
||||
pkgrel='1'
|
||||
pkgdesc="simple HTTP router"
|
||||
arch=('any')
|
||||
license=('PerlArtistic' 'GPL')
|
||||
options=('!emptydirs')
|
||||
depends=('perl-class-accessor-lite' 'perl')
|
||||
makedepends=()
|
||||
url='https://metacpan.org/release/Router-Simple'
|
||||
source=('http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Router-Simple-0.17.tar.gz')
|
||||
md5sums=('96473bf45f61ed8e241e0410d4039b44')
|
||||
sha512sums=('4fbc4fb375d873d7c06d18da49855b81336744bc712035c6557914e275099d93aee4ab787bb1e7b3b730a109b716b4f572fc538d1d574ff709968a1b3767a963')
|
||||
_distdir="Router-Simple-0.17"
|
||||
|
||||
build() {
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
|
||||
PERL_AUTOINSTALL=--skipdeps \
|
||||
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
|
||||
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
|
||||
MODULEBUILDRC=/dev/null
|
||||
|
||||
cd "$srcdir/$_distdir"
|
||||
/usr/bin/perl Build.PL
|
||||
/usr/bin/perl Build
|
||||
)
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$_distdir"
|
||||
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
||||
/usr/bin/perl Build test
|
||||
)
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_distdir"
|
||||
/usr/bin/perl Build install
|
||||
|
||||
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
||||
}
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,Router-Simple*.tar.gz}
|
|
@ -0,0 +1,2 @@
|
|||
perl-class-accessor-lite
|
||||
perl-module-build
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m2.552s
|
||||
user 0m2.293s
|
||||
sys 0m0.442s
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname='ricoh-sp112-ppd'
|
||||
pkgver=v0.3.r23.ga71ade3
|
||||
pkgrel=02
|
||||
pkgdesc='CUPS driver for Ricoh Aficio SP 100 and SP 200 family printers - RICOH Aficio SP_100 SP_112 SP_204'
|
||||
url='https://github.com/vaginessa'
|
||||
optdepends=('inotify-tools: asynchronous printing support')
|
||||
makedepends=('git')
|
||||
source=(git+https://github.com/vaginessa/ricoh-sp112-ppd)
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
depends=('cups' 'jbigkit' 'imagemagick' 'ghostscript')
|
||||
mkdir -p $pkgdir/usr/share/cups/model
|
||||
mkdir -p $pkgdir/usr/lib/cups/filter
|
||||
cp *.ppd $pkgdir/usr/share/cups/model
|
||||
cp pstoricohddst-gdi $pkgdir/usr/lib/cups/filter
|
||||
}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=('unknown')
|
||||
|
||||
sha256sums=(SKIP)
|
||||
|
||||
## 4506e6dcb8dd81c1ad38b430e78b32f7cb0441efa99af78f734d27f6ad91f134 ricoh-sp112-ppd-v0.3.r23.ga71ade3-02-x86_64.pkg.tar.lz
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: Przemysław Buczkowski <przemub at przemub dot pl>
|
||||
|
||||
pkgname='ricoh-sp100-git'
|
||||
pkgver='v0.3.r22.gef4c12d'
|
||||
pkgrel=1
|
||||
|
||||
pkgdesc='CUPS driver for Ricoh Aficio SP 100 and SP 200 family printers'
|
||||
arch=('any')
|
||||
url='https://github.com/madlynx/ricoh-sp100/'
|
||||
license=('unknown')
|
||||
|
||||
depends=('cups' 'jbigkit' 'imagemagick' 'ghostscript')
|
||||
optdepends=('inotify-tools: asynchronous printing support')
|
||||
makedepends=('git')
|
||||
|
||||
source=('git://github.com/madlynx/ricoh-sp100')
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "ricoh-sp100"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "ricoh-sp100"
|
||||
|
||||
mkdir -p $pkgdir/usr/share/cups/model
|
||||
mkdir -p $pkgdir/usr/lib/cups/filter
|
||||
|
||||
cp *.ppd $pkgdir/usr/share/cups/model
|
||||
cp pstoricohddst-gdi $pkgdir/usr/lib/cups/filter
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,ricoh-sp112-ppd}
|
|
@ -0,0 +1,3 @@
|
|||
git
|
||||
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
bieniekmateusz commented Jun 3, 2020 •
|
||||
|
||||
Hi there, thanks for making the repo.
|
||||
|
||||
Hi, we are probably experiencing the same issue, I solved it for the Ricoh SP112SU.
|
||||
This fixes the ghost script SAFER/NOSAFER new policy issue, see https://ghostscript.com/doc/current/Use.htm.
|
||||
|
||||
diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi
|
||||
index f86f9b6..e252b37 100755
|
||||
--- a/pstoricohddst-gdi
|
||||
+++ b/pstoricohddst-gdi
|
||||
@@ -133,7 +133,7 @@ EOF
|
||||
|
||||
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
|
||||
#gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - |
|
||||
- gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
+ gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
|
||||
stop
|
||||
wait
|
||||
@@ -144,7 +144,7 @@ EOF
|
||||
|
||||
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
|
||||
log "Converting document to pages"
|
||||
- gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
+ gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
log "Conversion complete"
|
||||
|
||||
cat <<EOF
|
||||
|
||||
The lack of error propagation is not good.
|
||||
@gilex-dev
|
||||
gilex-dev commented Apr 23, 2023 •
|
||||
|
||||
@bieniekmateusz did you ever got it working?
|
||||
I tried
|
||||
|
||||
Fedora 37 KDE
|
||||
Fedora 38 KDE
|
||||
2023-02-21-raspios-bullseye-arm64-lite
|
||||
2023-02-21-raspios-bullseye-armhf-lite
|
||||
2021-12-02-raspios-buster-armhf-lite
|
||||
2023-05-03-raspios-buster-armhf-lite
|
||||
|
||||
Only the last two versions worked (I tried an older one because I had it working on a Raspberry Pi a couple of years ago)
|
||||
I'm planning to use a cheap Raspberry Pi Zero as an IPP print server (Under Fedora the Generic IPP Everywhere Driver worked and under Windows 10 one got installed automatically). Even printing from an old Phone (Android 8.0) worked like a charm.
|
||||
The only thing not working is the page count in the CUPS web-interface, but you can't have everything.
|
||||
Here are the basic steps that got it working
|
||||
|
||||
assuming pi is the user
|
||||
|
||||
sudo apt update
|
||||
sudo apt install git jbigkit-bin ghostscript imagemagick inotify-tools cups samba smbclient -y # I think the smb/samba packages are not necessary
|
||||
git clone https://github.com/vaginessa/ricoh-sp112-ppd
|
||||
cd ricoh-sp112-ppd
|
||||
./check-requirements
|
||||
sudo cp pstoricohddst-gdi /usr/lib/cups/filter
|
||||
sudo usermod -a -G lpadmin pi # not sure if necessary
|
||||
cupsctl --remote-admin --remote-any --share-printers # only when you want to print/administer from a different machine
|
||||
|
||||
Select yes when asked to install dhcp package
|
||||
./check-requirements asks for pbmtojbg but for Fedora/RaspiOS it is jbigkit/jbigkit-bin
|
||||
./check-requirements asks for identify but for Fedora/RaspiOS it is ImageMagick/imagemagick
|
||||
|
||||
Typo?
|
||||
|
||||
I noticed a small typo/error in
|
||||
|
||||
ricoh-sp112-ppd/RICOH_Aficio_SP_112.ppd
|
||||
|
||||
Line 123 in a71ade3
|
||||
*% End of rsp100.ppd, 06096 bytes.
|
||||
|
||||
The line should be *% End of rsp112.ppd, 06096 bytes. like here:
|
||||
|
||||
ricoh-sp112-ppd/RICOH_Aficio_SP_112.ppd
|
||||
|
||||
Line 8 in a71ade3
|
||||
*PCFileName: "rsp112.ppd"
|
||||
right?
|
||||
But I think this does not matter.
|
||||
|
||||
Output of ./check-requirements
|
||||
|
||||
pbmtojbg [REQUIRED] : Yes, version: PBMtoJBIG converter 2.1 -- creates bi-level image entity (BIE) as output file
|
||||
identify [REQUIRED] : Yes, version: Version: ImageMagick 6.9.10-23 Q16 arm 20190101 https://imagemagick.org
|
||||
Ghostscript [REQUIRED] : Yes, version: 9.27
|
||||
ps2write [REQUIRED] : Yes
|
||||
pbmraw [REQUIRED] : Yes
|
||||
inotify-wait [optional] : Yes, version: inotifywait 3.14
|
||||
|
||||
...and CUPS is version 2.2.10
|
||||
|
||||
Hope this helps someone!
|
|
@ -0,0 +1,22 @@
|
|||
diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi
|
||||
index f86f9b6..e252b37 100755
|
||||
--- a/pstoricohddst-gdi
|
||||
+++ b/pstoricohddst-gdi
|
||||
@@ -133,7 +133,7 @@ EOF
|
||||
|
||||
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
|
||||
#gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - |
|
||||
- gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
+ gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
|
||||
stop
|
||||
wait
|
||||
@@ -144,7 +144,7 @@ EOF
|
||||
|
||||
# Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
|
||||
log "Converting document to pages"
|
||||
- gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
+ gs -sDEVICE=ps2write -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs --permit-file-all=${uid}/ -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
|
||||
log "Conversion complete"
|
||||
|
||||
cat <<EOF
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 0m1.746s
|
||||
user 0m1.231s
|
||||
sys 0m0.274s
|
||||
|
Loading…
Reference in New Issue