summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaximilian Weiss2020-09-12 08:59:28 -0700
committerMaximilian Weiss2020-09-12 08:59:28 -0700
commit9e25d28dc45cfe7372a15a5b0abd0d69d7f3161c (patch)
treee8a2fdcacb22ee3b043adb3bcbe37820fc1deaa2 /PKGBUILD
parent590ec65bbe13b29b9d84aa0ac86257132e04f71e (diff)
downloadaur-9e25d28dc45cfe7372a15a5b0abd0d69d7f3161c.tar.gz
Update to v0.10.0, which requires new build deps
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 807f38e809b..799d417472b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,15 @@
# Contributor: D. Bohdan <http://dbohdan.com/contact/>
pkgname=s2png-git
-pkgver=v0.7.2
+pkgver=v0.10.0.r000
pkgrel=1
pkgdesc='stuff to PNG'
-arch=('i686' 'x86_64')
+arch=('any')
url='https://github.com/dbohdan/s2png'
license=('GPLv2')
depends=('gd')
+makedepends=('cargo' 'rust' 'rustfmt' 'coreutils' 'gcc' 'binutils')
provides=('s2png' 's2png-git')
conflicts=('s2png' 's2png-git')
source=('git://github.com/dbohdan/s2png')
@@ -18,15 +19,20 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/s2png/"
git reset --hard HEAD > /dev/null 2>&1
- git describe --tags | sed 's/-/./g'
+ echo $(git describe --tags | sed 's/-/./g' | cut -d"." -f1-3)".r"$(git rev-list --all --count)
}
build() {
cd "$srcdir/s2png/"
git reset --hard HEAD > /dev/null 2>&1
- make
+ mkdir -p "$srcdir/s2png/tempmakedir"
+ env CC="${CARCH}-unknown-linux-gnu-gcc" TARGET="${CARCH}-unknown-linux-gnu" USER_TEMP="$srcdir/s2png/tempmakedir" make test
+ env CC="${CARCH}-unknown-linux-gnu-gcc" TARGET="${CARCH}-unknown-linux-gnu" USER_TEMP="$srcdir/s2png/tempmakedir" make release
+ mv "$srcdir/s2png/tempmakedir/cargo/s2png/${CARCH}-unknown-linux-gnu/release/s2png" ./s2png_release_bin
+ strip s2png_release_bin
}
package() {
- install -Dm755 "$srcdir/s2png/s2png" "$pkgdir/usr/bin/s2png"
+ install -Dm755 "$srcdir/s2png/s2png_release_bin" "$pkgdir/usr/bin/s2png"
}
+