From b23da6f7fffb385e1d43e4e98112f44fac9b70c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 22 Sep 2021 21:12:56 +0200 Subject: ArchLinux: Update PKGBUILD template. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- arch/PKGBUILD.template | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'arch') 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 } -- cgit v1.2.1