ArchLinux: Update PKGBUILD template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b23da6f7ff)
pull/158/head
Slávek Banko 3 years ago
parent 0697917350
commit 37c66790b0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -4,14 +4,14 @@
_mod=tdepowersave _mod=tdepowersave
_cat=applications/ _cat=applications/
_kdemod="${_mod/tde/kde}" _kdemod="${_mod/tde/kde}"
pkgname="tde-$_mod" pkgname="tde-${_mod}"
pkgver=14.0.5 pkgver=14.0.10
pkgrel=1 pkgrel=1
pkgdesc="Trinity Desktop Enviroment $_cat$_mod" pkgdesc="Trinity Desktop Enviroment $_cat$_mod"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://scm.trinitydesktop.org/scm/git/$_mod" url="https://scm.trinitydesktop.org/scm/git/${_mod}"
license=('GPL') license=('GPL')
provides=("$_mod") provides=("${_mod}")
groups=('tde-complete') groups=('tde-complete')
depends=( depends=(
'tde-tdelibs' 'tde-tdelibs'
@ -22,38 +22,36 @@ makedepends=(
'pkgconfig' 'pkgconfig'
) )
optdepends=() optdepends=()
confilicts=("trinity-$_kdemod" "kdemod3-$_kdemod") confilicts=("trinity-${_kdemod}" "kdemod3-${_kdemod}")
replaces=("trinity-$_mod") replaces=("trinity-${_mod}")
options=('staticlibs' 'libtool' '!strip') options=('staticlibs' 'libtool' '!strip')
install= 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() { [ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
cd "${srcdir}/${_cat}${_mod}" [ -n "$QTDIR" ] || QTDIR=${TDEDIR}/tqt3
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
build() {
msg "Creating out-of-source build directory: ${srcdir}/build" msg "Creating out-of-source build directory: ${srcdir}/build"
mkdir -p "$srcdir/build" mkdir -p "$srcdir/build"
cd "$srcdir/build" cd "$srcdir/build"
msg "Starting cmake..." msg "Starting cmake..."
cmake ${srcdir}/${_mod}-trinity-${pkgver} \
cmake ${srcdir}/${_cat}${_mod} \ -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \ -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
-DSYSCONF_INSTALL_DIR=${TDEDIR}/etc \ -DSYSCONF_INSTALL_DIR=${TDEDIR}/etc \
-DBUILD_ALL=ON \ -DBUILD_ALL=ON \
-DWITH_GCC_VISIBILITY=ON -DWITH_GCC_VISIBILITY=ON
msg "Building - ${pkgname}..."
make $NUMJOBS make $NUMJOBS
} }
package() { package() {
msg "Packaging - $pkgname-$pkgver" msg "Packaging - ${pkgname}-${pkgver}"
cd "$srcdir/build" cd "$srcdir/build"
make -j1 DESTDIR="$pkgdir" install make -j1 DESTDIR="$pkgdir" install
} }

Loading…
Cancel
Save