blob: 98ecf7643d90d4abff80209a3a1f97cc72840cde (
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
43
44
45
46
47
48
|
# Maintainer:
_pkgname="corepdf"
pkgname="$_pkgname-git"
pkgver=4.5.0.r10.g8a42dc9
pkgrel=1
pkgdesc="A PDF viewer from the C Suite"
url="https://gitlab.com/cubocore/coreapps/corepdf"
license=('GPL-3.0-only')
arch=('x86_64' 'aarch64')
depends=(
libcprime
poppler-qt5
)
makedepends=(
git
cmake
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --exclude='*[a-zA-Z][a-zA-Z]*' 2> /dev/null \
| sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|