makedeb


glow-bin 1.4.1-2


Markdown renderer for the CLI

Click here to go back to the commit logs for glow-bin.

Commit:


Hash: 2374335a7b510b07b4d28149b652e4b9b1c8e550

Message: Build package according to Go package guidelines

Diff


diff --git a/.SRCINFO b/.SRCINFO
index ae1be67..49a5fc7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = glow-bin
 	pkgdesc = Markdown renderer for the CLI
 	pkgver = 0.1.3
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/charmbracelet/glow
 	arch = x86_64
 	license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index c51cced..3436eb6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,21 @@
 # Maintainer: Christian Muehlhaeuser <muesli at gmail dot com>
+# Contributor: Stephen Gregoratto <dev@sgregoratto.me>
 
 pkgname=glow-bin
 pkgver=0.1.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Markdown renderer for the CLI"
 arch=('x86_64')
 url="https://github.com/charmbracelet/glow"
 license=('MIT')
 provides=('glow')
 conflicts=('glow')
-source_x86_64=("https://github.com/charmbracelet/glow/releases/download/v${pkgver}/glow_${pkgver}_linux_x86_64.tar.gz")
+source_x86_64=("$url/releases/download/v$pkgver/glow_${pkgver}_linux_x86_64.tar.gz")
 sha256sums_x86_64=('a7fdd84bae57f24756fd9a08d327ccc0d0c358b08949eacc35600a0575508f1d')
 
 package() {
-    install -Dm755 $srcdir/glow ${pkgdir}/usr/bin/glow
+    install -Dm755 "glow" "$pkgdir/usr/bin/glow"
+    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 # vim:set ts=4 sw=4 et: