Skip to content

Commit

Permalink
Merge branch 'frankenstein91-forPullRequest'
Browse files Browse the repository at this point in the history
  • Loading branch information
NaitLee committed Apr 13, 2022
2 parents b53d2d0 + 4f0d1a5 commit cc93b98
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 1 deletion.
40 changes: 40 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Maintainer :

pkgname=cat-printer-git
pkgver=r30.eafaa6e
pkgrel=1
pkgdesc="A project that provides support to some Bluetooth Cat Printer models, on many platforms!"
arch=('any')
url="https://github.com/NaitLee/Cat-Printer"
license=('GPL3')
depends=('python' 'bluez' 'bluez-utils' 'python-bleak')
makedepends=('git')
provides=("cat-printer=${pkgver}")
source=("$pkgname::git+https://github.com/NaitLee/Cat-Printer.git")
md5sums=('SKIP')
sha256sums=('SKIP')
options=(!strip emptydirs)
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/cat-printer"
cp -r "$srcdir/cat-printer-git"/* "$pkgdir/usr/share/cat-printer/"
rm -rf "$pkgdir/usr/share/cat-printer/build-"*
rm -rf "$pkgdir/usr/share/cat-printer/dev-diary.txt"
rm -rf "$pkgdir/usr/share/cat-printer/TODO"
cat <<EOF > "$pkgdir/usr/bin/cat-printer"
#!/bin/sh
cd /usr/share/cat-printer
python3 printer.py "\$@"
EOF
chmod +x "$pkgdir/usr/bin/cat-printer"
cat <<EOF > "$pkgdir/usr/bin/cat-printer-server"
#!/bin/sh
cd /usr/share/cat-printer
python3 server.py "\$@"
EOF
chmod +x "$pkgdir/usr/bin/cat-printer-server"
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ English | [Deutsch](./readme.i18n/README.de_DE.md) | [简体中文](./readme.i18

🐱🖨 A project that provides support to some Bluetooth "Cat Printer" models, on *many* platforms!

[![cat-printer-poster](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)

## Models

Currently:
Expand Down
2 changes: 2 additions & 0 deletions readme.i18n/README.de_DE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

🐱🖨 Ein Projekt, das Unterstützung für einige Bluetooth-"Cat Printer"-Modelle auf *vielen* Plattformen bietet!

[![cat-printer-poster](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)

## unterstützte Geräte

Gegenwärtig:
Expand Down
2 changes: 2 additions & 0 deletions readme.i18n/README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

🐱🖨 猫咪打印机:此应用*跨平台地*对一些蓝牙“喵喵机”提供支持!

[![cat-printer-poster](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)](https://repository-images.githubusercontent.com/403563361/ad018f6e-3a6e-4028-84b2-205f7d35c22b)

## 型号

目前有:
Expand Down
9 changes: 8 additions & 1 deletion www/lang/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"you-can-close-this-page-manually": "Sie können diese Seite manuell schließen",
"please-enable-bluetooth": "Bitte aktivieren Sie Bluetooth",
"error-happened-please-check-error-message": "Fehler aufgetreten, bitte Fehlermeldung einsehen",
"you-can-seek-for-help-with-detailed-info-below": "Sie können mit den nachstehenden ausführlichen Informationen Hilfe bekommen."
"you-can-seek-for-help-with-detailed-info-below": "Sie können mit den nachstehenden ausführlichen Informationen Hilfe bekommen.",
"or-try-to-scan-longer": "Oder versuchen Sie, länger zu suchen",
"print-pbm-image-to-cat-printer": "PBM-Bild auf Cat Printer drucken.",
"supported-models-": "Unterstützte Modelle:",
"path-to-pbm-file-dash-for-stdin": "Pfad zur PBM-Datei. '-' für stdin.",
"scan-for-specified-seconds": "Suchlauf für die angegebenen Sekunden",
"specify-printer-mac-address": "Geben Sie die MAC-Adresse des Druckers an",
"communication-frequency-0.8-or-1-recommended": "Übermittlungsfrequenz. 0,8 oder 1 empfohlen."
}
}

0 comments on commit cc93b98

Please sign in to comment.