Skip to content

Commit

Permalink
add key-mon screenkey
Browse files Browse the repository at this point in the history
  • Loading branch information
farseerfc committed Nov 3, 2016
1 parent 16d72a6 commit 003c6e5
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
42 changes: 42 additions & 0 deletions key-mon/PKGBUILD
@@ -0,0 +1,42 @@
# Maintainer: Lara Maia <lara@craft.net.br>
#
# Contributors: Nuno Araujo <nuno.araujo at russo79.com>
# Guan Qing <neokuno@gmail.com>
# Liudas <liudas@akmc.lt>
# Tom Tryfonidis <tomtryf [at] gmail [dot] com>

pkgname=key-mon
pkgver=1.17
pkgrel=1
pkgdesc="A small utility to display your current keyboard and mouse status. Useful for screencasts."
arch=('any')
url="http://code.google.com/p/key-mon/"
depends=('pygtk' 'dbus-glib' 'python2-dbus' 'python2-xlib')
makedepends=('python2-distribute')
install=${pkgname}.install
license=('Apache 2.0')

source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-$pkgver.tar.gz
$pkgname.install)

md5sums=('68bfe1ff8765878cf7d100759d433473'
'bb92b6ada97430e35595ca0f7e48b931')

package() {
cd "$srcdir"/$pkgname-$pkgver

python2 setup.py install --root="$pkgdir"

install -Dm644 "$srcdir"/$pkgname-$pkgver/icons/key-mon.desktop "$pkgdir"/usr/share/applications/key-mon.desktop
install -Dm644 "$srcdir"/$pkgname-$pkgver/icons/key-mon.xpm "$pkgdir"/usr/share/pixmaps/key-mon.xpm

find "$pkgdir" -type f -exec sed -i 's|/usr/bin/python$|/usr/bin/python2|g' {} +
}








13 changes: 13 additions & 0 deletions key-mon/key-mon.install
@@ -0,0 +1,13 @@
post_install() {
update-desktop-database -q
}

post_upgrade() {
post_install $1
}

post_remove() {
update-desktop-database -q
}


17 changes: 17 additions & 0 deletions key-mon/lilac.py
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
#
# This file is the most simple lilac.py file,
# and it suits for most packages in AUR.
#

from lilaclib import *


build_prefix = 'extra-x86_64'
pre_build = aur_pre_build
post_build = aur_post_build

if __name__ == '__main__':
single_main(build_prefix)


6 changes: 6 additions & 0 deletions nvchecker.ini
Expand Up @@ -934,6 +934,9 @@ aur=
[jave]
aur=

[key-mon]
aur=

[kdeconnect-git]
vcs=git://anongit.kde.org/kdeconnect-kde.git

Expand Down Expand Up @@ -1080,6 +1083,9 @@ aur=
[ruby1.8]
aur=

[screenkey]
aur=

[shashlik-bin]
aur=

Expand Down
27 changes: 27 additions & 0 deletions screenkey/PKGBUILD
@@ -0,0 +1,27 @@
# Contributor: Adria Arrufat <swiftscythe @t gmail d@t com>
# Contributor: Gordin <9ordin @t gmail d@t com>

pkgname=screenkey
pkgver=0.9
pkgrel=1
pkgdesc="Screencast tool to show your keys inspired by Screenflick, based on key-mon. Active fork with new features."
arch=('any')
url="https://github.com/wavexx/screenkey"
license=('GPL3')
depends=('python2' 'pygtk' 'libx11')
optdepends=('slop')
makedepends=('python2-distutils-extra' 'python2-setuptools')
source=("https://github.com/wavexx/$pkgname/archive/$pkgname-$pkgver.tar.gz")
sha256sums=('20f0b5415906cfb5cf41ca4f61c4ca22d4a13413aed87980d4d1a03dc92e7157')

build() {
cd "$srcdir/$pkgname-$pkgname-$pkgver"
python2 setup.py build
}

package() {
cd "$srcdir/$pkgname-$pkgname-$pkgver"
python2 setup.py install --skip-build --optimize=1 --root="$pkgdir/"
}

# vim:set ts=2 sw=2 et:
17 changes: 17 additions & 0 deletions screenkey/lilac.py
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
#
# This file is the most simple lilac.py file,
# and it suits for most packages in AUR.
#

from lilaclib import *


build_prefix = 'extra-x86_64'
pre_build = aur_pre_build
post_build = aur_post_build

if __name__ == '__main__':
single_main(build_prefix)


0 comments on commit 003c6e5

Please sign in to comment.