diff options
author | Chocobo1 | 2023-04-06 04:38:51 +0800 |
---|---|---|
committer | Chocobo1 | 2023-04-06 04:38:51 +0800 |
commit | 87c41fb1c03615b0de0357d3690d46a6965bb649 (patch) | |
tree | 35f9153cffd80b8e4b16daff6dabf80a76c60922 /PKGBUILD | |
parent | 319cbba6340ccc516767c289cb675a1fcfcbf8c6 (diff) | |
download | aur-87c41fb1c03615b0de0357d3690d46a6965bb649.tar.gz |
upgpkg: oxipng-git 8.0.0.r6.gcc37f645-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=oxipng-git -pkgver=3.0.0.r3.ge4d4c93 +pkgver=8.0.0.r6.gcc37f645 pkgrel=1 pkgdesc="Multithreaded PNG optimizer" arch=('i686' 'x86_64') @@ -9,12 +9,21 @@ url="https://github.com/shssoichiro/oxipng" license=('MIT') depends=('gcc-libs') makedepends=('git' 'rust') -provides=('oxipng') +provides=("oxipng=$pkgver") conflicts=('oxipng') source=("git+https://github.com/shssoichiro/oxipng.git") sha256sums=('SKIP') +prepare() { + cd "oxipng" + + if [ ! -f "Cargo.lock" ]; then + cargo update + fi + cargo fetch +} + pkgver() { cd "oxipng" @@ -25,18 +34,17 @@ check() { cd "oxipng" #cargo test \ - # --locked \ - # --release + # --frozen } package() { cd "oxipng" cargo install \ - --no-track \ --locked \ + --no-track \ --root "$pkgdir/usr" \ - --path "$srcdir/oxipng" + --path . install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/oxipng" } |