[testing] -> [extra] 'evolution-3.42.1-1' move

master
Dudemanguy 1 year ago
parent cd77129ff4
commit 85fecb6b51
  1. 26
      x86_64/extra/PKGBUILD
  2. 80
      x86_64/testing/PKGBUILD

@ -3,7 +3,7 @@
pkgbase=evolution
pkgname=(evolution evolution-bogofilter evolution-spamassassin)
pkgver=3.40.4
pkgver=3.42.1
pkgrel=1
pkgdesc="Manage your email, contacts and schedule"
url="https://wiki.gnome.org/Apps/Evolution"
@ -14,7 +14,7 @@ depends=(gnome-desktop evolution-data-server libcanberra libpst libytnef
makedepends=(intltool itstool docbook-xsl networkmanager bogofilter
spamassassin highlight gtk-doc yelp-tools git cmake ninja)
options=(!emptydirs)
_commit=3ab34e95b5faf3a548a2d4964c744f1f6dd89dbc # tags/3.40.4^0
_commit=5d813604683fed734d93e7738a9bb4408f56df07 # tags/3.42.1^0
source=("git+https://gitlab.gnome.org/GNOME/evolution.git#commit=$_commit")
sha256sums=('SKIP')
@ -37,6 +37,16 @@ build() {
cmake --build build
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_evolution() {
depends+=(libcamel-1.2.so libebook-1.2.so libebook-contacts-1.2.so
libecal-2.0.so libedataserver-1.2.so libedataserverui-1.2.so)
@ -47,12 +57,10 @@ package_evolution() {
DESTDIR="$pkgdir" cmake --install build
### Split
local x
cd "$pkgdir"
for x in bogofilter spamassassin; do
mkdir -p $x/usr/{lib/evolution/modules,share/metainfo}
mv {"$pkgdir",$x}/usr/lib/evolution/modules/module-$x.so
mv {"$pkgdir",$x}/usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
_pick $x usr/lib/evolution/modules/module-$x.so
_pick $x usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
done
}
@ -61,12 +69,12 @@ package_evolution-bogofilter() {
pkgdesc="Spam filtering for Evolution, using Bogofilter"
depends=("evolution=$pkgver" bogofilter)
mv bogofilter/usr "$pkgdir"
mv bogofilter/* "$pkgdir"
}
package_evolution-spamassassin() {
pkgdesc="Spam filtering for Evolution, using SpamAssassin"
depends=("evolution=$pkgver" spamassassin)
mv spamassassin/usr "$pkgdir"
mv spamassassin/* "$pkgdir"
}

@ -1,80 +0,0 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=evolution
pkgname=(evolution evolution-bogofilter evolution-spamassassin)
pkgver=3.42.1
pkgrel=1
pkgdesc="Manage your email, contacts and schedule"
url="https://wiki.gnome.org/Apps/Evolution"
arch=(x86_64)
license=(GPL)
depends=(gnome-desktop evolution-data-server libcanberra libpst libytnef
dconf gspell libcryptui gnome-autoar)
makedepends=(intltool itstool docbook-xsl networkmanager bogofilter
spamassassin highlight gtk-doc yelp-tools git cmake ninja)
options=(!emptydirs)
_commit=5d813604683fed734d93e7738a9bb4408f56df07 # tags/3.42.1^0
source=("git+https://gitlab.gnome.org/GNOME/evolution.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --tags | sed 's/^EVOLUTION_//;s/_/./g;s/-/+/g'
}
prepare() {
cd $pkgbase
}
build() {
cmake -S $pkgbase -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBEXEC_INSTALL_DIR=/usr/lib \
-DSYSCONF_INSTALL_DIR=/etc \
-DENABLE_SMIME=ON \
-DENABLE_GTK_DOC=ON
cmake --build build
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_evolution() {
depends+=(libcamel-1.2.so libebook-1.2.so libebook-contacts-1.2.so
libecal-2.0.so libedataserver-1.2.so libedataserverui-1.2.so)
optdepends=('highlight: text highlight plugin'
'evolution-spamassassin: Spamassassin spam check plugin'
'evolution-bogofilter: Bogofilter spam check plugin')
groups=(gnome-extra)
DESTDIR="$pkgdir" cmake --install build
cd "$pkgdir"
for x in bogofilter spamassassin; do
_pick $x usr/lib/evolution/modules/module-$x.so
_pick $x usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
done
}
package_evolution-bogofilter() {
pkgdesc="Spam filtering for Evolution, using Bogofilter"
depends=("evolution=$pkgver" bogofilter)
mv bogofilter/* "$pkgdir"
}
package_evolution-spamassassin() {
pkgdesc="Spam filtering for Evolution, using SpamAssassin"
depends=("evolution=$pkgver" spamassassin)
mv spamassassin/* "$pkgdir"
}
Loading…
Cancel
Save