summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5dd06c83e63322904eee485ae9d3c876a7dc98d9 (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
pkgname=moli-git
pkgver=1.1.1.525.g437a82ab
pkgrel=1
pkgdesc="Best headless browser for AI agents. Lite, Fast, High-Compatibility."
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/lexmount/moli"
license=('MIT' 'APACHE')
depends=('libpng' 'brotli' 'bzip2' 'expat' 'freetype2' 'fontconfig')
makedepends=('cargo' 'cmake' 'git')
optdepends=()
provides=('moli')
conflicts=('moli')
source=($pkgname::git+https://github.com/lexmount/moli)
sha256sums=('SKIP')
options=(!lto)

pkgver() {
	cd $pkgname/moli
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
}

build() {
	cd $pkgname/moli
	cargo build --release
}

package() {
	cd $pkgname
	install -D -m755 "$srcdir/$pkgname/target/release/moli" "$pkgdir/usr/bin/moli"
}