You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
3 years ago
|
# Contributor: Slávek Banko <slavek.banko@axis.cz>
|
||
|
|
||
2 years ago
|
_mod=tde-cmake-trinity
|
||
|
_cat=dependencies/
|
||
3 years ago
|
_kdemod="${_mod/tde/kde}"
|
||
|
|
||
2 years ago
|
pkgname="tde-${_mod/tde-}"
|
||
|
pkgver=14.1.0
|
||
3 years ago
|
pkgrel=1
|
||
3 years ago
|
pkgdesc="TDE CMake modules"
|
||
2 years ago
|
arch=('any')
|
||
|
url="https://scm.trinitydesktop.org/scm/git/tde-cmake"
|
||
3 years ago
|
license=('GPL')
|
||
|
provides=("${_mod}")
|
||
|
groups=('tde-core')
|
||
|
depends=(
|
||
|
'cmake'
|
||
|
'perl'
|
||
|
'ninja'
|
||
|
'pkgconfig'
|
||
|
)
|
||
|
makedepends=()
|
||
|
optdepends=()
|
||
|
options=('staticlibs' 'libtool' '!strip')
|
||
|
install=
|
||
|
|
||
|
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-${pkgver}.tar.xz")
|
||
2 years ago
|
md5sums=('70bcd49a0df9b6c51c14787a762cc36e')
|
||
3 years ago
|
|
||
|
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
|
||
2 years ago
|
[ -n "$TQTDIR" ] || TQTDIR=${TDEDIR}/tqt3
|
||
3 years ago
|
|
||
|
build() {
|
||
|
msg "Creating out-of-source build directory: ${srcdir}/build"
|
||
|
mkdir -p "$srcdir/build"
|
||
|
cd "$srcdir/build"
|
||
|
|
||
|
msg "Starting cmake..."
|
||
|
cmake ${srcdir}/${_mod}-${pkgver} \
|
||
|
-GNinja \
|
||
|
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||
|
|
||
|
msg "Building - ${pkgname}..."
|
||
|
ninja $NUMJOBS
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
msg "Packaging - ${pkgname}-${pkgver}"
|
||
|
cd "$srcdir/build"
|
||
|
DESTDIR="$pkgdir" ninja -j1 install
|
||
|
}
|