diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-09-22 21:12:56 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-09-29 09:27:59 +0200 |
commit | 37c66790b061dc3db2ad8284fba1f5f215501860 (patch) | |
tree | 9f25f55083af1d18f1057455c5020c08498f083b /arch/PKGBUILD.template | |
parent | 069791735036f273c27977ea221d86dbc29e90f9 (diff) | |
download | tde-packaging-37c66790b061dc3db2ad8284fba1f5f215501860.tar.gz tde-packaging-37c66790b061dc3db2ad8284fba1f5f215501860.zip |
ArchLinux: Update PKGBUILD template.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b23da6f7fffb385e1d43e4e98112f44fac9b70c3)
Diffstat (limited to 'arch/PKGBUILD.template')
-rw-r--r-- | arch/PKGBUILD.template | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/arch/PKGBUILD.template b/arch/PKGBUILD.template index 0b84ae9d9..8b1d87d1c 100644 --- a/arch/PKGBUILD.template +++ b/arch/PKGBUILD.template @@ -4,14 +4,14 @@ _mod=tdepowersave _cat=applications/ _kdemod="${_mod/tde/kde}" -pkgname="tde-$_mod" -pkgver=14.0.5 +pkgname="tde-${_mod}" +pkgver=14.0.10 pkgrel=1 pkgdesc="Trinity Desktop Enviroment $_cat$_mod" arch=('i686' 'x86_64') -url="http://scm.trinitydesktop.org/scm/git/$_mod" +url="https://scm.trinitydesktop.org/scm/git/${_mod}" license=('GPL') -provides=("$_mod") +provides=("${_mod}") groups=('tde-complete') depends=( 'tde-tdelibs' @@ -22,38 +22,36 @@ makedepends=( 'pkgconfig' ) optdepends=() -confilicts=("trinity-$_kdemod" "kdemod3-$_kdemod") -replaces=("trinity-$_mod") +confilicts=("trinity-${_kdemod}" "kdemod3-${_kdemod}") +replaces=("trinity-${_mod}") options=('staticlibs' 'libtool' '!strip') install= -source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R$pkgver/$_cat$_mod-R$pkgver.tar.bz2") +source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz") +md5sums=() -build() { - cd "${srcdir}/${_cat}${_mod}" - - msg "Setting PATH, CMAKE and Trinity Environment variables" - # Source the QT and TDE profile - [ "$QTDIR" = "" ] && . /etc/profile.d/tqt3.sh - [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh +[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity +[ -n "$QTDIR" ] || QTDIR=${TDEDIR}/tqt3 +build() { msg "Creating out-of-source build directory: ${srcdir}/build" mkdir -p "$srcdir/build" cd "$srcdir/build" msg "Starting cmake..." - - cmake ${srcdir}/${_cat}${_mod} \ + cmake ${srcdir}/${_mod}-trinity-${pkgver} \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DSYSCONF_INSTALL_DIR=${TDEDIR}/etc \ -DBUILD_ALL=ON \ -DWITH_GCC_VISIBILITY=ON + msg "Building - ${pkgname}..." make $NUMJOBS } package() { - msg "Packaging - $pkgname-$pkgver" + msg "Packaging - ${pkgname}-${pkgver}" cd "$srcdir/build" make -j1 DESTDIR="$pkgdir" install } |