summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbanbanchs2016-12-19 20:15:59 +0800
committerbanbanchs2016-12-19 20:15:59 +0800
commit0712d0ff917c1c7917244ca794f8f659dc2076ad (patch)
tree9544c4b1d9d4c4b425e5d2160a862d109045c556
parent9fc2ea70c34f807eb0aea2ac8944cd6bf48b3716 (diff)
downloadaur-0712d0ff917c1c7917244ca794f8f659dc2076ad.tar.gz
Add i686 support
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD21
2 files changed, 22 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ad8835c6da..8f19641fe27 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 4728fc21c34..1ce63acb847 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
}