mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-19 08:40:08 -07:00
Merge branch 'develop' into main
This commit is contained in:
commit
2960f162e8
40
PKGBUILD
Normal file
40
PKGBUILD
Normal file
@ -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=('GPL')
|
||||||
|
depends=('python' 'bluez' 'bluez-utils')
|
||||||
|
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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user