diff options
author | Joaquín Pino | 2022-04-22 17:15:44 -0500 |
---|---|---|
committer | Joaquín Pino | 2022-04-22 17:15:44 -0500 |
commit | 43304049e2a70fbdef713a4fadb355d2e47206a2 (patch) | |
tree | 11cf86c9fd20895fefbfa693162722a1b6f66ab5 | |
parent | 8822a4d8254f13d9d6d2bbaf816aaa292bdf833b (diff) | |
download | aur-43304049e2a70fbdef713a4fadb355d2e47206a2.tar.gz |
Added maintainer info and improved git versioning
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1,24 +1,25 @@ +# Maintainer: Joaquín Pino <jpinoz at tuta dot io> _name="webp-pixbuf-loader" pkgname="${_name}-git" -pkgdesc="Enable WebP support in GTK apps" -pkgver=2022.03.16 +pkgdesc="WebM GDK Pixbuf Loader library - Git version" +pkgver=0.0.4.r2.g631c1ec pkgrel=1 url="https://github.com/aruiz/webp-pixbuf-loader" license=("GPL") depends=("gdk-pixbuf2" "libwebp") -makedepends=("meson") -arch=("i686" "x86_64") +makedepends=("meson" "git") +arch=("i686" "x86_64" "i486" "pentium4" "aarch64" "armv7h") conflicts=("${_name}") source=("${_name}::git+${url}.git") sha256sums=("SKIP") pkgver() { - cd "${srcdir}/${_name}" - git log -1 --format="%cd" --date=short | sed 's/-/./g' + cd "${_name}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/${_name}" + cd "${_name}" arch-meson build ninja -C build } |