blob: c7d7d3b9e86d3c373c650eab57778765e81392f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
pkgname=qtshutdownmenu-git
pkgver=r4.314f35e
pkgrel=1
pkgdesc="Graphical shutdown util with PyQt5 and lock script for i3"
arch=('any')
url="https://github.com/z3ntu/qtshutdownmenu"
license=('MIT')
makedepends=('git')
depends=('python' 'python-pyqt5' 'ttf-liberation' 'imagemagick' 'scrot' 'i3lock')
options=(!emptydirs)
source=(git+https://github.com/z3ntu/qtshutdownmenu)
md5sums=(SKIP)
pkgver() {
cd "$srcdir/qtshutdownmenu"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/qtshutdownmenu"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/icons"
mkdir -p "$pkgdir/usr/share/applications"
install -Dm755 "shutdownmenu.py" "$pkgdir/usr/bin/qtshutdownmenu"
install -Dm755 "lock.sh" "$pkgdir/usr/bin/lock"
install -Dm755 "icon.png" "$pkgdir/usr/share/icons/lock.png"
install -Dm755 "qtshutdownmenu.desktop" "$pkgdir/usr/share/applications/qtshutdownmenu.desktop"
}
# vim:set ts=2 sw=2 et:
|