-
Notifications
You must be signed in to change notification settings - Fork 0
/
LULU.toml
47 lines (40 loc) · 868 Bytes
/
LULU.toml
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
[package]
name = "lulu-git"
maintainers = ["alyrow"]
description = "Concept of package manager built on top of apt for handling git repositories"
url = "localhost"
source = "https://github.com/alyrow/lulu.git"
arch = ["any"]
license = []
provides = ["lulu"]
postinst = '''
#!/bin/sh
set -e
lulu setup
'''
[dependencies.runtime]
fakeroot = { is = "APT" }
"libapt-pkg6.0" = { is = "APT" }
[dependencies.build]
libapt-pkg-dev = { is = "APT" }
gcc = { is = "APT" }
pkg-config = { is = "APT" }
libssl-dev = { is = "APT" }
"g++" = { is = "APT" }
[dependencies.optional]
[script]
prepare = '''
'''
build = '''
export PATH=$PATH:$HOME/.cargo/bin/
cargo update
cargo build --release
'''
check = '''
'''
package = '''
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/etc
install -Dm755 target/release/lulu $pkgdir/usr/bin/lulu
install -Dm644 lulu.conf $pkgdir/etc/lulu.conf
'''