Skip to content

Instantly share code, notes, and snippets.

@Narrat
Created March 26, 2016 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Narrat/cc16f622e6b4b2250977 to your computer and use it in GitHub Desktop.
Save Narrat/cc16f622e6b4b2250977 to your computer and use it in GitHub Desktop.
Architecture specific things
diff --git a/PKGBUILD b/PKGBUILD
index a0decf8..245149c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,15 +20,11 @@ optdepends=("google-chrome: to enable Live Preview"
provides=("brackets=$pkgver")
conflicts=('brackets' 'brackets-git')
install=$pkgname.install
+source_i686=("https://github.com/adobe/$_pkgname/releases/download/release-$pkgver/Brackets.Release.$pkgver.32-bit.deb")
+source_x86_64=("https://github.com/adobe/$_pkgname/releases/download/release-$pkgver/Brackets.Release.$pkgver.64-bit.deb")
+sha512sums_i686=('3cda0049a10504e26faf5d750b1cd35f4161147cb7d71f0f9fb22fd274d1b18cdb27b0c95694620d22d61203200ab487ee05206d855048bf991951a289f579f0')
+sha512sums_x86_64=('e3fba356a6b152e8d27b521ae2be69cc51b935c04f67a448c3f23be4267f40176e1344ef06fd8172ed0927d990ba50c5babde930f713bb9e5e5e912d63787e0c')
-if [[ $CARCH == "x86_64" ]]; then
- _arch=64
-sha512sums=('e3fba356a6b152e8d27b521ae2be69cc51b935c04f67a448c3f23be4267f40176e1344ef06fd8172ed0927d990ba50c5babde930f713bb9e5e5e912d63787e0c')
-elif [[ $CARCH == "i686" ]]; then
- _arch=32
-fi
-
-source=("https://github.com/adobe/$_pkgname/releases/download/release-$pkgver/Brackets.Release.$pkgver.$_arch-bit.deb")
prepare() {
cd $srcdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment