blob: 6fdea6e41a613fc6e4ca7a5a7604886db3359918 (
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
|
# Maintainer: Erick Cafferata <erick@cafferata.me>
pkgname=pomod-git
_pkgname=pomod
pkgver=r15.1d7998e
pkgrel=1
license=('MIT')
pkgdesc='The pomodoro daemon'
makedepends=("meson" "scdoc" "git")
depends=(
"libnotify"
)
arch=(i686 x86_64)
url='https://gitlab.com/erickcc/pomod'
source=("${pkgname%-*}::git+https://gitlab.com/erickcc/pomod.git")
sha1sums=('SKIP')
provides=('pomod')
conflicts=('pomod')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
meson --prefix=/usr . build
ninja -C build
}
package() {
cd "$_pkgname"
DESTDIR="$pkgdir/" ninja -C build install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname%-*}"/LICENSE
install -Dm755 pomod-info "$pkgdir"/usr/bin/pomod-info
}
|