summaryrefslogtreecommitdiffstats
path: root/arch/PKGBUILD.template
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-09-22 21:12:56 +0200
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2021-09-29 06:38:41 +0000
commitb23da6f7fffb385e1d43e4e98112f44fac9b70c3 (patch)
tree87a52f3bffc3d6788463f0dc19d14bb11e016526 /arch/PKGBUILD.template
parentbb0b7bd86497c864292a7c8d089d00f81707bda2 (diff)
downloadtde-packaging-b23da6f7fffb385e1d43e4e98112f44fac9b70c3.tar.gz
tde-packaging-b23da6f7fffb385e1d43e4e98112f44fac9b70c3.zip
ArchLinux: Update PKGBUILD template.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/PKGBUILD.template')
-rw-r--r--arch/PKGBUILD.template32
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
}