summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD21
2 files changed, 22 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ad8835c6da4..8f19641fe27d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,18 @@
pkgbase = jid-bin
pkgdesc = Json incremental digger
pkgver = 0.6.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/simeji/jid
+ arch = i686
arch = x86_64
license = MIT
depends = glibc
- source = https://github.com/simeji/jid/releases/download/0.6.2/jid_linux_amd64.zip
- sha256sums = 17bf8657edd74e570286018d86a4a8835ced0e9ea1ea79b5284f9caa9355275f
+ provides = jid
+ conflicts = jid
+ conflicts = jid-git
+ source_i686 = https://github.com/simeji/jid/releases/download/0.6.2/jid_linux_386.zip
+ source_x86_64 = https://github.com/simeji/jid/releases/download/0.6.2/jid_linux_amd64.zip
+ sha256sums_x86_64 = 17bf8657edd74e570286018d86a4a8835ced0e9ea1ea79b5284f9caa9355275f
pkgname = jid-bin
diff --git a/PKGBUILD b/PKGBUILD
index 4728fc21c348..1ce63acb8471 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,20 +3,27 @@
pkgname=jid-bin
_pkgname=jid
pkgver=0.6.2
-pkgrel=1
+pkgrel=2
pkgdesc="Json incremental digger"
url="https://github.com/simeji/jid"
-arch=("x86_64")
+arch=("i686" "x86_64")
license=("MIT")
-provides=()
-conflicts=()
+provides=("jid")
+conflicts=("jid" "jid-git")
depends=("glibc")
-source=("https://github.com/simeji/jid/releases/download/${pkgver}/${_pkgname}_linux_amd64.zip")
-sha256sums=('17bf8657edd74e570286018d86a4a8835ced0e9ea1ea79b5284f9caa9355275f')
+source_i686=("https://github.com/simeji/jid/releases/download/${pkgver}/${_pkgname}_linux_386.zip")
+source_x86_64=("https://github.com/simeji/jid/releases/download/${pkgver}/${_pkgname}_linux_amd64.zip")
+sha256sums_x86_64=('7f4c7e4d56e82adda3cf596bee975e5adb778c50381e3d20e4e41bb987ff36f6')
+sha256sums_x86_64=('17bf8657edd74e570286018d86a4a8835ced0e9ea1ea79b5284f9caa9355275f')
package() {
cd "${srcdir}"
- install -Dm755 "${srcdir}/${_pkgname}_linux_amd64" "$pkgdir/usr/bin/${_pkgname}"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ if [ "${CARCH}" = "x86_64" ]; then
+ install -Dm755 "${srcdir}/${_pkgname}_linux_amd64" "$pkgdir/usr/bin/${_pkgname}"
+ else
+ install -Dm755 "${srcdir}/${_pkgname}_linux_386" "$pkgdir/usr/bin/${_pkgname}"
+ fi
}