Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
add gifski
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 11, 2023
1 parent 0c30ca8 commit eeae98d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions mingw-w64-gifski/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: Jeroen

_realname=gifski
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.12.2
pkgrel=1
pkgdesc="Highest-quality GIF encoder based on pngquant (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="https://crates.io/crates/gifski"
license=("spdx:LGPL-2.1-or-later")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
options=('staticlibs' 'strip')
source=("https://github.com/ImageOptim/gifski/archive/refs/tags/1.12.2.tar.gz")
sha256sums=('daaeefd21d8328282d2c1082faddbc1f4870c60c1453e6e85e1a421aa77738d6')


prepare() {
export PATH="$(cygpath -u $USERPROFILE)/.cargo/bin:$PATH"
TARGET="${MINGW_CHOST/w64-mingw32/pc-windows-gnu}"
RUSTVER="1.69"
rustup target add $TARGET
rustup default "$RUSTVER-$TARGET"
rustc --version
}

build() {
cd ${srcdir}/${_realname}-${pkgver}
cargo build --release
}

package() {
cd ${srcdir}/${_realname}-${pkgver}
install -Dm644 target/release/libgifski.a ${pkgdir}${MINGW_PREFIX}/lib/libgifski.a
install -Dm644 gifski.h ${pkgdir}${MINGW_PREFIX}/include/gifski.h
}

0 comments on commit eeae98d

Please sign in to comment.