summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLuis Martinez2022-08-07 23:23:09 -0500
committerLuis Martinez2022-08-07 23:24:09 -0500
commit2d4c3cf44d07501570558b7edf8f78f913627672 (patch)
tree120850f1df0bb4f348952c3b480064407aa5bed9 /PKGBUILD
parentb4dfb6d50093b5617f0a2c80af6711d9a22281ef (diff)
downloadaur-libspng-git.tar.gz
packaging cleanup
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 17 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5650418f7601..4774a4a3f3fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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/"
}