blob: 27127c519269a6fca7d97e0e5d3b2bc1e432cfee (
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
|
# Maintainer: Giulio Lettieri <giulio.lettieri@gmail.com>
# Contributor: Jefferson Gonzalez <jgmdev@gmail.com>
pkgname=lpm-git
_pkgname=lpm
_gitname=lite-xl-plugin-manager
pkgver=1.2.9.r47.gbf98e52
pkgrel=1
pkgdesc='A lite-xl plugin manager.'
arch=('x86_64' 'aarch64')
url="https://github.com/lite-xl/lite-xl-plugin-manager"
license=('MIT')
depends=('lua' 'zlib' 'libzip' 'libgit2' 'mbedtls2' 'xz')
makedepends=('git' 'meson')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/lite-xl/lite-xl-plugin-manager")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --tags --long --exclude continuous --exclude latest | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
}
build() {
cd "${_gitname}"
FULL_VERSION=$(git describe --tags --long --exclude continuous --exclude latest)
export CFLAGS+=" -DLPM_VERSION='\"$FULL_VERSION\"' -DLPM_DEFAULT_RELEASE=''"
arch-meson -Dstatic=true . build
meson compile -C build
}
package() {
install -D "${srcdir}/${_gitname}/build/${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"
install -D -t "${pkgdir}/usr/share/licenses/lpm/" "${srcdir}/${_gitname}/LICENSE"
install -D -t "${pkgdir}/usr/share/doc/lpm/" "${srcdir}/${_gitname}/"{README,SPEC}.md
}
|