blob: 4eb11d1299d9682f5be7bd66a1d5ebb73cf4836a (
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
|
# Maintainer: Anton Strömkvist <anton@stromkvist.com>
pkgname=log
pkgver=1.0.5
pkgrel=1
epoch=
pkgdesc="Log & time-tracker"
arch=('x86_64')
url="https://github.com/joshavanier/log"
license=('MIT')
groups=()
depends=()
makedepends=('npm' 'sed')
checkdepends=()
optdepends=()
provides=("log")
conflicts=("log")
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/joshavanier/$pkgname/archive/$pkgver.tar.gz")
noextract=()
md5sums=("f02e9c8dca9cfde93365dad1edd64669")
validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
npm install
}
build() {
cd "$pkgname-$pkgver"
npm run-script build_linux
}
package() {
cd "$pkgname-$pkgver"
install -d "$pkgdir/usr/bin/"
install -d "$pkgdir/usr/lib/"
install -d "$pkgdir/usr/share/applications/"
install -d "$pkgdir/usr/share/icons/hicolor/512x512/apps/"
cp -r "$srcdir/$pkgname-$pkgver/build/Log-linux-x64" "$pkgdir/usr/lib/Log"
cp "$srcdir/$pkgname-$pkgver/log.desktop" "$pkgdir/usr/share/applications/log.desktop"
sed -i 's;icon.png;log;' "$pkgdir/usr/share/applications/log.desktop"
cp "$srcdir/$pkgname-$pkgver/icon.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/log.png"
ln -s "/usr/lib/Log/Log" "$pkgdir/usr/bin/log"
}
|