summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaco de Wolff2020-01-02 11:56:20 -0300
committerTaco de Wolff2020-01-02 11:56:20 -0300
commit856d4820e49c538198f596105291c2864f08c187 (patch)
tree957081667e59ec21770d80da5f66602b25e5d7f1
parenta012c7ee5a0f3c50f91a5db7dadea461fa41c8f7 (diff)
downloadaur-856d4820e49c538198f596105291c2864f08c187.tar.gz
Update to build from sources using go-pie
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD22
2 files changed, 18 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 97151138ce0..e3cc8e70d59 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = minify
pkgdesc = Minifier CLI for HTML, CSS, JS, JSON, SVG and XML
- pkgver = 2.6.1
+ pkgver = 2.6.3
pkgrel = 1
url = https://github.com/tdewolff/minify
arch = x86_64
license = MIT
+ makedepends = go-pie
optdepends = bash-completion: command-line autocomplete with bash
- source = https://github.com/tdewolff/minify/releases/download/v2.6.1/minify_2.6.1_linux_amd64.tar.gz
- source = https://raw.githubusercontent.com/tdewolff/minify/master/cmd/minify/minify_bash_tab_completion
- sha256sums = e936a81d5fa8f44907298116f8bca9c4c3dca0d51c055ae0f97d43b67cafacda
- sha256sums = 2410022ab77254225eb11ac34f4ee473aaa0d8add7d868e2a22af5964f89f1cf
+ source = https://github.com/tdewolff/minify/archive/v2.6.3.tar.gz
+ sha256sums = 171481aca8960a78bea7252665d1b2f5eb32a8075609edf590280a21ea9f1760
pkgname = minify
diff --git a/PKGBUILD b/PKGBUILD
index 943709e0222..92df5ac9249 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,27 @@
# Maintainer: meepzh <meep.aur@meepzh.com>
pkgname=minify
-pkgver=2.6.1
+pkgver=2.6.3
pkgrel=1
pkgdesc="Minifier CLI for HTML, CSS, JS, JSON, SVG and XML"
arch=('x86_64')
url="https://github.com/tdewolff/minify"
license=('MIT')
+makedepends=('go-pie')
optdepends=('bash-completion: command-line autocomplete with bash')
-source=("https://github.com/tdewolff/minify/releases/download/v${pkgver}/minify_${pkgver}_linux_amd64.tar.gz"
- "https://raw.githubusercontent.com/tdewolff/minify/master/cmd/minify/minify_bash_tab_completion")
-sha256sums=('e936a81d5fa8f44907298116f8bca9c4c3dca0d51c055ae0f97d43b67cafacda'
- '2410022ab77254225eb11ac34f4ee473aaa0d8add7d868e2a22af5964f89f1cf')
+source=("https://github.com/tdewolff/minify/archive/v$pkgver.tar.gz")
+sha256sums=('171481aca8960a78bea7252665d1b2f5eb32a8075609edf590280a21ea9f1760')
+
+build() {
+ cd "$pkgname-$pkgver/cmd/minify"
+ go build -ldflags "-X 'main.Version=v$pkgver' -extldflags $LDFLAGS" -trimpath -o minify .
+ source minify_bash_tab_completion
+}
package() {
- install -D -m755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
- install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m644 "minify_bash_tab_completion" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+ cd "$pkgname-$pkgver"
+ install -Dm755 "cmd/minify/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "cmd/minify/minify_bash_tab_completion" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
}