summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4bed946577d12efd7f82e1aa722cebb9c394e4e (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
# Maintainer: Alex Medvědů <a13xie@mcld.eu>

pkgname=ppm-git
_pkgname=ppm
_gitname=plugin-manager
pkgver=1.0.2.r43.gc1f8a7a
pkgrel=1
pkgdesc='A plugin manager for the Pragtical editor'
arch=('x86_64' 'aarch64')
url="https://github.com/pragtical/plugin-managerr"
license=('MIT')
depends=('pragtical' 'lua' 'zlib' 'libzip' 'libgit2' 'mbedtls2')
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 -lz -lgit2 -lzip -llua -lm \
             -lmbedtls -lmbedx509 -lmbedcrypto \
             -DPPM_STATIC \
             -I/usr/include/mbedtls2 \
             -L/usr/lib/mbedtls2
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  cp "${srcdir}/${_gitname}"/ppm "$pkgdir/usr/bin"
}