mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Add arch PKGBUILD
This commit is contained in:
64
Packaging/Linux/PKGBUILD
Normal file
64
Packaging/Linux/PKGBUILD
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# Maintainer: Mike Nolan <tesses@tesses.net>
|
||||||
|
pkgname=tesses-framework # '-bzr', '-git', '-hg' or '-svn'
|
||||||
|
pkgver=r186.fb5b06a
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc=""
|
||||||
|
arch=('x86_64' 'powerpc')
|
||||||
|
url="https://onedev.site.tesses.net/tesses-framework"
|
||||||
|
license=('MIT')
|
||||||
|
groups=()
|
||||||
|
depends=('mbedtls')
|
||||||
|
makedepends=('git' 'cmake' 'make' 'base-devel' 'wget') # 'bzr', 'git', 'mercurial' or 'subversion'
|
||||||
|
install=
|
||||||
|
source=('tesses-framework::git+https://onedev.site.tesses.net/tesses-framework')
|
||||||
|
noextract=()
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
if [[ -z "$CMAKE_TOOLCHAIN" ]]; then
|
||||||
|
options=(!strip)
|
||||||
|
else
|
||||||
|
options=(!buildflags !strip)
|
||||||
|
fi
|
||||||
|
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
|
||||||
|
# a description of each element in the source array.
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/${pkgname}"
|
||||||
|
|
||||||
|
# The examples below are not absolute and need to be adapted to each repo. The
|
||||||
|
# primary goal is to generate version numbers that will increase according to
|
||||||
|
# pacman's version comparisons with later commits to the repo. The format
|
||||||
|
# VERSION='VER_NUM.rREV_NUM.HASH', or a relevant subset in case VER_NUM or HASH
|
||||||
|
# are not available, is recommended.
|
||||||
|
|
||||||
|
# Git, no tags available
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/${pkgname}"
|
||||||
|
wget https://downloads.tesses.net/ShellPackage.crvm
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/${pkgname}"
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
if [[ -z "$CMAKE_TOOLCHAIN" ]]; then
|
||||||
|
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORK_VENDERCERTCHAIN=OFF -DTESSESFRAMEWORK_FETCHCONTENT=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
|
else
|
||||||
|
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DTESSESFRAMEWORK_VENDERCERTCHAIN=OFF -DTESSESFRAMEWORK_FETCHCONTENT=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TOOLCHAIN"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd build
|
||||||
|
make -j`nproc`
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/${pkgname}/build"
|
||||||
|
make install DESTDIR="$pkgdir/"
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user