blob: 54fcb0aee0ea545df3f4ae099b5aa71271f3702c (
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
|
#Maintainer: Maxb0tbeep <max@polygonal.place)
pkgname=meow-git
pkgver=1.0.0.r0.gabc1234 # This will be dynamically generated
pkgrel=1
pkgdesc="A better AUR helper, powered by nim"
arch=(x86_64)
url="https://gitlab.com/Maxb0tbeep/meow"
license=('GPLv3')
makedepends=(nim git)
provides=(meow)
source=("git+$url.git#branch=main")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/meow"
local ver
ver=$(git describe --long --tags 2>/dev/null || git rev-parse --short HEAD)
printf "%s" "$(echo "$ver" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/meow"
nimble build -d:release -y
}
package() {
cd "$srcdir/meow"
install -Dm755 "build/meow" "$pkgdir/usr/bin/meow"
}
|