diff options
author | Luis Martinez | 2022-08-07 23:23:09 -0500 |
---|---|---|
committer | Luis Martinez | 2022-08-07 23:24:09 -0500 |
commit | 2d4c3cf44d07501570558b7edf8f78f913627672 (patch) | |
tree | 120850f1df0bb4f348952c3b480064407aa5bed9 | |
parent | b4dfb6d50093b5617f0a2c80af6711d9a22281ef (diff) | |
download | aur-libspng-git.tar.gz |
packaging cleanup
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 23 insertions, 21 deletions
@@ -1,8 +1,8 @@ pkgbase = libspng-git - pkgdesc = C library for reading and writing PNG format files with a focus on security and ease of use - pkgver = 0.7.2.r4.gd981609 + pkgdesc = Simple, modern libpng alternative + pkgver = 0.7.2.r18.gc4126ad pkgrel = 1 - url = https://libspng.org/ + url = https://github.com/randy408/libspng arch = x86_64 arch = aarch64 license = BSD @@ -10,8 +10,9 @@ pkgbase = libspng-git makedepends = meson depends = zlib provides = libspng + provides = libspng.so conflicts = libspng - source = git+https://gitlab.com/randy408/libspng.git - b2sums = SKIP + source = libspng::git+https://github.com/randy408/libspng + sha256sums = SKIP pkgname = libspng-git @@ -1,30 +1,31 @@ -# Maintainer: Philip Goto <philip.goto@gmail.com> +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Philip Goto <philip.goto@gmail.com> pkgname=libspng-git -pkgver=0.7.2.r4.gd981609 +_pkg="${pkgname%-git}" +pkgver=0.7.2.r18.gc4126ad pkgrel=1 -pkgdesc='C library for reading and writing PNG format files with a focus on security and ease of use' -arch=(x86_64 aarch64) -url='https://libspng.org/' -license=(BSD) -depends=(zlib) -makedepends=(git meson) -provides=(libspng) -conflicts=(libspng) -source=('git+https://gitlab.com/randy408/libspng.git') -b2sums=('SKIP') +pkgdesc='Simple, modern libpng alternative' +arch=('x86_64' 'aarch64') +url='https://github.com/randy408/libspng' +license=('BSD') +depends=('zlib') +makedepends=('git' 'meson') +provides=("$_pkg" "$_pkg.so") +conflicts=("$_pkg") +source=("$_pkg::git+$url") +sha256sums=('SKIP') pkgver() { - cd libspng - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git -C "$_pkg" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - arch-meson build libspng + arch-meson build "$_pkg" meson compile -C build } package() { DESTDIR="$pkgdir" meson install -C build - install -D "libspng/LICENSE" "${pkgdir}/usr/share/licenses/libspng-git/LICENSE" + install -Dm644 "$_pkg/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/" } |