diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 37 insertions, 14 deletions
@@ -1,9 +1,24 @@ # Maintainer: # Contributor: Ignacy KuchciĆski (ignapk) <ignacykuchcinski@gmail.com> -_pkgname='libgweather' -pkgname="$_pkgname-git" -pkgver=4.2.0.r27.g93127506 +_pkgbase="libgweather" +pkgbase="$_pkgbase-git" + +case "${_srcinfo::1}" in + 't'|'y'|1) + pkgname=( + "libgweather-git" + "libgweather-4-git" + ) + ;; + *) + pkgname=( + "libgweather-4-git" + ) + ;; +esac + +pkgver=4.2.0.r28.g1c3dfe68 pkgrel=1 pkgdesc='Location and timezone database and weather-lookup library' url='https://gitlab.gnome.org/GNOME/libgweather' @@ -26,33 +41,41 @@ makedepends=( 'vala' ) -provides=( - 'libgweather' - 'libgweather-4' -) -conflicts=(${provides[@]}) - -source=("$_pkgname"::"git+$url") +source=("$_pkgbase"::"git+$url") sha256sums=('SKIP') pkgver() { - cd $_pkgname + cd "$srcdir/$_pkgbase" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - arch-meson "$_pkgname" build -D gtk_doc=true + arch-meson "$_pkgbase" build -D gtk_doc=true meson compile -C build } check() { - meson test -C build --print-errorlogs || : + meson test -C build --print-errorlogs || true +} + +package_libgweather-git() { + pkgdesc='metapackage to track broken dependencies' + depends=('libgweather-4-git') + + provides+=( + 'libgweather' + ) + conflicts=(${provides[@]}) } -package() { +package_libgweather-4-git() { provides+=( + 'libgweather-4' 'libgweather-4.so' ) + conflicts=( + 'libgweather-4' + ) meson install -C build --destdir "$pkgdir" } |