blob: 7ae52be675fb3c7352846ffffddf006a0ef56ee7 (
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
47
48
49
50
|
# Maintainer: Jonathan Balls <jonathanballs@protonmail.com>
pkgname=logmaster-git
_pkgname=logmaster
pkgver=130.ae03a4d
pkgrel=1
pkgdesc="Log viewer for linux with large file support, kubernetes support and highlighting"
arch=('x86_64')
url="http://github.com/jonathanballs/logmaster"
license=('MIT')
depends=()
optdepends=()
makedepends=('git' 'ldc' 'dub')
provides=('logmaster')
source=('git+https://github.com/jonathanballs/logmaster')
sha512sums=('SKIP')
pkgver() {
cd ${_pkgname}
echo "$(git log --oneline | wc -l).$(git rev-parse --short HEAD)"
}
prepare() {
cd ${_pkgname}
}
build() {
cd ${_pkgname}
dub build --compiler=ldc --build=release
}
package() {
cd ${_pkgname}
# Move the binary
mkdir -p $pkgdir/usr/bin
cp logmaster $pkgdir/usr/bin/
# Move the desktop file
mkdir -p $pkgdir/usr/share/applications/
cp package/logmaster.desktop $pkgdir/usr/share/applications
# Icon
mkdir -p $pkgdir/usr/share/pixmaps/
cp package/logmaster.xpm $pkgdir/usr/share/pixmaps
# Resources
mkdir -p $pkgdir/usr/local/share/
cp -r resources $pkgdir/usr/local/share/logmaster
}
|