yochananmarqos

hushboard-git

Jan 30th, 2021 (edited)
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.14 KB | None | 0 0
  1. pkgname=hushboard-git
  2. pkgver=r34.223b6f9
  3. pkgrel=1
  4. pkgdesc="Mute your microphone while typing."
  5. arch=('any')
  6. url="https://kryogenix.org/code/hushboard"
  7. license=('MIT')
  8. depends=('python-gobject' 'python-xlib' 'libappindicator-gtk3')
  9. makedepends=('git' 'python-setuptools' 'setconf')
  10. provides=("${pkgname%-git}")
  11. conflicts=("${pkgname%-git}")
  12. source=('git+https://github.com/stuartlangridge/hushboard.git')
  13. sha256sums=('SKIP')
  14.  
  15. pkgver() {
  16.   cd "$srcdir/${pkgname%-git}"
  17.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  18. }
  19.  
  20. prepare() {
  21.   cd "$srcdir/${pkgname%-git}"
  22.   setconf "snap/gui/${pkgname%-git}.desktop" Icon hushboard
  23. }
  24.  
  25. build() {
  26.   cd "$srcdir/${pkgname%-git}"
  27.   python setup.py build
  28. }
  29.  
  30. package() {
  31.   cd "$srcdir/${pkgname%-git}"
  32.   export PYTHONHASHSEED=0
  33.   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  34.  
  35.   install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  36.   install -Dm644 "${pkgname%-git}-512.png" \
  37.     "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
  38.   install -Dm644 "snap/gui/${pkgname%-git}.desktop" -t \
  39.     "$pkgdir/usr/share/applications"
  40. }
Add Comment
Please, Sign In to add comment