Skip to content

Instantly share code, notes, and snippets.

@mlotysz
Created March 6, 2020 10:35
Show Gist options
  • Save mlotysz/1512d68f9aca5e99002741bce035f654 to your computer and use it in GitHub Desktop.
Save mlotysz/1512d68f9aca5e99002741bce035f654 to your computer and use it in GitHub Desktop.
add_binary_sources.patch
diff --git a/PKGBUILD b/PKGBUILD
index c9f1b29..2f635c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,17 +13,17 @@ provides=('prometheus')
conflicts=('prometheus' 'prometheus-git')
install='prometheus.install'
backup=('etc/prometheus/prometheus.yml')
-source=('prometheus.service')
+source=(prometheus.service)
sha256sums=('0c99b68b282d72feb9fd2bc0b190554659a59dada74ec92ca2b2f48016a9b805')
sha256sums_x86_64=('c04e631d18e186b66a51cac3062157298e037ffae784f35ccaaf29e496d65d3f')
sha256sums_arm=('bca4a0221045948659eab36f702d02494103414a13fad7ec39e4f645084ded63')
sha256sums_armv6h=('35a68da888e4b94bfbb25a4287a16710b352806042754171add78e33c2d30988')
sha256sums_armv7h=('2ce8f9a0b0a82ffd65ffeaa1b48fa55c8f7b30969c479685cc8f3107d2be9875')
-sha256sums=('0c99b68b282d72feb9fd2bc0b190554659a59dada74ec92ca2b2f48016a9b805')
-sha256sums_x86_64=('1c2175428e7a70297d97a30a04278b86ccd6fc53bf481344936d6573482203b4')
-sha256sums_arm=('31ec0f2cb070d91e2dbe7ecc6c5f1051b28f6792fd7b5ae3c8a127ff90097584')
-sha256sums_armv6h=('c16b654cb7cfb9919da62b791759561e10b6d9d9271e1160f11d045cb29f5473')
-sha256sums_armv7h=('795ec7349828166d9fdf78f7c53b35d04488929fae26f9e547459f60dc34c060')
+source_x86_64=(https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-amd64.tar.gz)
+source_arm=(https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv5.tar.gz)
+source_armv6h=(https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv6.tar.gz)
+source_armv7h=(https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-armv7.tar.gz)
+source_aarch64=(https://github.com/prometheus/prometheus/releases/download/v$pkgver/prometheus-$pkgver.linux-arm64.tar.gz)
package() {
case "$CARCH" in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment