blob: a8652a841b97d420cc4b1182e553e86d5c96a81f (
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
33
34
35
36
|
# Maintainer: Javier Ribal del Río <javierribal@gmail.com>
pkgname='quit-git'
pkgver=r130.4c081b8
pkgrel=1
pkgdesc="Application for Linux terminal to shutdown, reboot or suspend the computer. You can also set a timed shutdown or a timed reboot."
arch=('x86_64')
url="https://github.com/JavierRibaldelRio/quit.git"
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('git')
provides=('quit')
source=("quit-git::git://github.com/JavierRibaldelRio/quit.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
./configure --prefix=/usr
make
}
check() {
cd "$pkgname"
make -k check
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" install
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/quit/LICENSE.md"
install -Dm64 README.md "${pkgdir}/usr/share/doc/quit/README.md"
}
|