diff options
author | Mark Wagie | 2024-04-30 14:33:47 -0600 |
---|---|---|
committer | Mark Wagie | 2024-04-30 14:33:47 -0600 |
commit | f84b03d50a7d24e301fc4be4b555a790039b1dad (patch) | |
tree | bc4db71e8131a9e52a33227b4f57de4798d813e0 | |
parent | 7f854107fea6a329f8f905df108b57f5f2653a42 (diff) | |
download | aur-conjure.tar.gz |
use tarball source
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 11 insertions, 18 deletions
@@ -1,18 +1,17 @@ pkgbase = conjure pkgdesc = Magically transform your images. pkgver = 0.1.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/nate-xyz/conjure arch = any license = GPL-3.0-or-later checkdepends = appstream-glib - makedepends = git makedepends = meson depends = libadwaita depends = python-gobject depends = python-loguru depends = python-wand - source = git+https://github.com/nate-xyz/conjure.git#commit=bdbea03359109be6ebe0bea9fa5678c4ce541987 - sha256sums = SKIP + source = conjure-0.1.2.tar.gz::https://github.com/nate-xyz/conjure/archive/refs/tags/v0.1.2.tar.gz + sha256sums = 1866d146217ca47219f42c2e415bd597f301e29a25b4a454c022827f6c16788e pkgname = conjure @@ -2,30 +2,24 @@ pkgname=conjure _app_id=io.github.nate_xyz.Conjure pkgver=0.1.2 -pkgrel=1 +pkgrel=2 pkgdesc="Magically transform your images." arch=('any') url="https://github.com/nate-xyz/conjure" license=('GPL-3.0-or-later') depends=('libadwaita' 'python-gobject' 'python-loguru' 'python-wand') -makedepends=('git' 'meson') +makedepends=('meson') checkdepends=('appstream-glib') -_commit=bdbea03359109be6ebe0bea9fa5678c4ce541987 # tags/v0.1.2^0 -source=("git+https://github.com/nate-xyz/conjure.git#commit=$_commit") -sha256sums=('SKIP') - -pkgver() { - cd "$pkgname" - git describe --tags | sed 's/^v//;s/-/+/g' -} +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('1866d146217ca47219f42c2e415bd597f301e29a25b4a454c022827f6c16788e') prepare() { - cd "$pkgname" - sed -i "s/Exec=$pkgname/Exec=$_app_id/g" "data/$_app_id.desktop.in" + cd "$pkgname-$pkgver" + sed -i "s/Exec=$pkgname/Exec=${_app_id}/g" "data/${_app_id}.desktop.in" } build() { - arch-meson "$pkgname" build + arch-meson "$pkgname-$pkgver" build meson compile -C build } @@ -37,5 +31,5 @@ package() { meson install -C build --destdir "$pkgdir" # Conflicts with imagmagick 'conjure' binary - mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$_app_id" + mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/${_app_id}" } |