blob: 4485929dd813f4a708d23ba097e0bace28f8d9a1 (
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
38
39
40
41
42
|
# Maintainer: Alex Medvědů <a13xie@mcld.eu>
pkgname=ppm-git
_pkgname=ppm
_gitname=plugin-manager
pkgver=continuous.r0.g67c3d18
pkgrel=1
pkgdesc='A plugin manager for the Pragtical editor'
arch=('x86_64' 'aarch64')
url="https://github.com/pragtical/plugin-manager"
license=('MIT')
depends=('pragtical' 'lua' 'zlib' 'libzip' 'libgit2' 'mbedtls2' 'mbedtls')
makedepends=('git' 'cmake' 'gcc')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/pragtical/plugin-manager")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --tags --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
}
prepare() {
cd "${_gitname}"
git submodule update --init
}
build() {
cd "${_gitname}"
./build.sh -DPPM_STATIC \
-DPPM_VERSION='"'$pkgver-$CARCH-linux'"' \
-L/usr/lib/mbedtls2 \
-I/usr/include/mbedtls2 \
-lgit2 -lzip -llua -lm -lmbedtls\
-lmbedx509 -lmbedcrypto -lz
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "${srcdir}/${_gitname}"/ppm "$pkgdir/usr/bin"
}
|