Skip to content

Commit

Permalink
archlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Nov 8, 2024
1 parent d9db90f commit 1805be0
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Maintainer: Ivan Gagis <[email protected]>

pkgname=veg
pkgver=$PACKAGE_VERSION
pkgrel=1
arch=('x86_64' 'armv7h' 'aarch64')
epoch=
pkgdesc="SVG rendering library in C++"
url="http://github.com/cppfw/${packageName}"
license=('MIT')
groups=()

depends=(
"utki"
"agg"
"rasterimage"
)

makedepends=(
'myci'
'prorab'
'prorab-extra'
'doxygen'
"clang" # for clang-tidy and clang-format
"r4"
"tst"
)
checkdepends=('myci')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=() # do not download any sources
noextract=()
md5sums=()
validpgpkeys=()

rootDir=$(pwd)/.. # project root directory

prepare() {
cd "$rootDir"
}

build() {
cd "$rootDir"
# TODO: turn on lint when arch adopts more modern clang-tidy
make lint=off
}

check() {
cd "$rootDir"
# TODO: figure out why tests fail, probably due to undeterminism in floating point operations
# make test
}

package() {
cd "$rootDir"
make DESTDIR="$pkgdir" PREFIX=/usr install
}

0 comments on commit 1805be0

Please sign in to comment.