summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6993e27fb9cee9e5f6eefad645501f4ea76976d7 (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
# Maintainer, contributor  Bruno R. <bruno (at) mailoo (dot) org>


_realname=lunela-master
pkgname=lunela
pkgver=1.3
pkgrel=1
pkgdesc="Print ephemeris of the moon in a terminal"
arch=('any')
url="https://gitlab.com/brunoy/lunela.git"
license=('GPL3')
depends=('python>=3.6')
makedepends=('git')
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/brunoy/$pkgname/-/archive/master/$_realname.tar.gz")
md5sums=('SKIP')


package() {

    cd "$srcdir/$_realname"

    install -d "$pkgdir/usr/bin/"
    install -d "$pkgdir/usr/share/$pkgname/moon/"
    install -d "$pkgdir/usr/share/$pkgname/image/"
    install -d "$pkgdir/usr/share/$pkgname/locale/fr/LC_MESSAGES/"

    install -m755 "$srcdir/$_realname/bin/$pkgname" "$pkgdir/usr/bin/"
    install -m644 "$srcdir/$_realname/src/moon/"*.py "$pkgdir/usr/share/$pkgname/moon/"
    install -m644 "$srcdir/$_realname/src/locale/fr/LC_MESSAGES/lunela.mo"\
                  "$pkgdir/usr/share/$pkgname/locale/fr/LC_MESSAGES/"
    install -m644 "$srcdir/$_realname/src/image/"*.jpg "$pkgdir/usr/share/$pkgname/image/"
    install -m644 "$srcdir/$_realname/src/"{main.py,ALIRE.txt} "$pkgdir/usr/share/$pkgname/"
}