blob: f5837f8e02b726b10f959a98c8b936120376efb0 (
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
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: codepoet <githubaman@gmail.com>
_name="arttime"
pkgname="${_name}-git"
pkgver=2.3.4
pkgrel=12
pkgdesc="arttime is a clock, timer, time manager and text-art viewer for the terminal (https://github.com/poetaman/$_name/wiki)"
arch=('any')
url="https://github.com/poetaman/${_name}"
license=('ARTTIME')
depends=(
'zsh>=5.7'
)
optdepends=('libnotify: for desktop notifications'
'diffutils: for systems where /etc/localtime is not a symlink and arttime needs to guess the timezone'
'vorbis-tools: for sounds in case user has not installed pulseaudio or pipwire')
conflicts=(${_name})
provides=(${_name})
source=("git+https://github.com/poetaman/$_name.git")
sha256sums=('SKIP')
#pkgver() {
# cd "${srcdir}/${_name}"
# echo "$(git describe --tags $(git rev-list --tags --max-count=1)| grep -o '[0-9.]*'
#).r$(git rev-list --count HEAD)"
#}
package() {
cd "$_name"
install -D -t "$pkgdir/usr/bin/" "./bin/artprint" "./bin/$_name"
find "./share/$_name/keypoems/" -type f -exec install -D -t "$pkgdir/usr/share/$_name/keypoems/" {} \;
find "./share/$_name/src/" -type f -exec install -D -t "$pkgdir/usr/share/$_name/src/" {} \;
find "./share/$_name/textart/" -type f -exec install -D -t "$pkgdir/usr/share/$_name/textart/" {} \;
find "./share/$_name/doc/" -type f -exec install -D -t "$pkgdir/usr/share/$_name/doc/" {} \;
install -D -t "$pkgdir/usr/share/zsh/site-functions/" "./share/zsh/functions/_artprint"
install -D -t "$pkgdir/usr/share/zsh/site-functions/" "./share/zsh/functions/_arttime"
install -D -t "$pkgdir/usr/share/man/man1/" "./share/man/man1/arttime.1.gz"
install -D -t "$pkgdir/usr/share/man/man1/" "./share/man/man1/artprint.1.gz"
install -Dm644 LICENSE_CODE "$pkgdir/usr/share/licenses/$_name/LICENSE_CODE"
install -Dm644 LICENSE_ART "$pkgdir/usr/share/licenses/$_name/LICENSE_ART"
install -Dm644 LICENSE_ADDENDUM_CFLA "$pkgdir/usr/share/licenses/$_name/LICENSE_ADDENDUM_CFLA"
}
|