blob: 6088f7f286e693e62020b6b2241a3ba18facc01d (
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
|
# Maintainer: Jonathan Matta <mattajonathan1@gmail.com>
pkgname='laser-git'
pkgver=v1.4.0.r0.gd2a9c9d
pkgrel=1
pkgdesc="The better ls command, configurable with lua"
arch=('x86_64')
url="https://github.com/jmattaa/laser"
license=('MIT')
depends=('lua' 'libgit2' 'glibc')
makedepends=('cmake' 'git')
source=('laser::git+https://github.com/jmattaa/laser.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/laser"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/laser"
mkdir -p build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
cd "$srcdir/laser"
install -Dm755 build/lsr "$pkgdir/usr/bin/lsr"
}
|