blob: 24a67295c33b6239ca50133674cd2e28b6e0b148 (
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
|
# Maintainer: Your Name <youremail@domain.com>
pkgname=process-logger
pkgver=1.0.0
pkgrel=2
epoch=
pkgdesc="A utility for creating human-readable program output logs."
arch=('any')
url="https://github.com/ITAnalyst-JU/process-logger"
license=('MIT')
groups=()
depends=('python-websockets' 'strace')
makedepends=('npm')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=("$pkgname-master.zip::https://github.com/ITAnalyst-JU/process-logger/archive/master.zip")
noextract=()
md5sums=("SKIP")
validpgpkeys=()
build() {
cd "$pkgname-master/src/frontend"
npm install
npm run build
}
package() {
cd "$pkgname-master/src"
TARGET="$pkgdir/usr/share/$pkgname"
mkdir -p "$TARGET"
cp -r events *.py "$TARGET"
mkdir -p "$TARGET/frontend"
cp -r frontend/{index.html,js} "$TARGET/frontend"
chmod +x "$TARGET/main.py"
mkdir -p "$pkgdir/usr/bin/"
ln -s "/usr/share/$pkgname/main.py" "$pkgdir/usr/bin/process-logger"
}
|