diff options
author | Caleb Maclennan | 2020-03-07 13:59:19 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-03-07 14:00:51 +0300 |
commit | a22673f628b6d0f41b24011c8ae7c02ef654624c (patch) | |
tree | 4905b592259cfc3f7e5b25794bf1d3dbbeab6fcc | |
parent | 293b35ade486327725c22d44521bf3fc6763f5b9 (diff) | |
download | aur-a22673f628b6d0f41b24011c8ae7c02ef654624c.tar.gz |
Adopt, bump to 1.1.0, build from source instead of upstream bin
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 30 insertions, 18 deletions
@@ -1,12 +1,13 @@ pkgbase = node-prune pkgdesc = Remove unnecessary files from node_modules - pkgver = 1.0.1 - pkgrel = 2 + pkgver = 1.1.0 + pkgrel = 1 url = https://github.com/tj/node-prune arch = x86_64 license = MIT - source = node-prune-1.0.1.tar.gz::https://github.com/tj/node-prune/releases/download/v1.0.1/node-prune_1.0.1_linux_amd64.tar.gz - sha512sums = db14ed6605a5c300064fe3c1339b8370dd430d3367169e8dba12f75a0b4e309ec4b0dff8abe7eeec3ae1abc1f58c2e97613ae3cf9394736ee04b4a7147cc5ffd + makedepends = go-pie + source = node-prune-1.1.0.tar.gz::https://github.com/tj/node-prune/archive/v1.1.0.tar.gz + sha256sums = 77739f945de5157efc3bafa7affb7b88dcc64bae42495158dabc2673c417192c pkgname = node-prune @@ -1,20 +1,31 @@ -# Maintainer: Jannick Hemelhof <mister dot jannick at gmail dot com> +# Maintainer: Caleb Maclennan <caleb@alerque.com> +# Contributor: Jannick Hemelhof <mister dot jannick at gmail dot com> pkgname=node-prune -pkgver=1.0.1 -pkgrel=2 -pkgdesc="Remove unnecessary files from node_modules" +pkgver=1.1.0 +pkgrel=1 +pkgdesc='Remove unnecessary files from node_modules' arch=('x86_64') -url="https://github.com/tj/node-prune" +url="https://github.com/tj/$pkgname" license=('MIT') -source=( - "${pkgname}-${pkgver}.tar.gz::https://github.com/tj/node-prune/releases/download/v1.0.1/node-prune_1.0.1_linux_amd64.tar.gz" - ) -sha512sums=('db14ed6605a5c300064fe3c1339b8370dd430d3367169e8dba12f75a0b4e309ec4b0dff8abe7eeec3ae1abc1f58c2e97613ae3cf9394736ee04b4a7147cc5ffd') +makedepends=('go-pie') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('77739f945de5157efc3bafa7affb7b88dcc64bae42495158dabc2673c417192c') -package() { - cd "${srcdir}" +prepare() { + # Patch because some AUR projects that use this actually _use_ the images (electron stuff) + cd "$pkgname-$pkgver" + sed -i -e '/"images",/d' internal/prune/prune.go +} + +build() { + cd "$pkgname-$pkgver" + go build -trimpath . +} - install -Dm755 ${pkgname} "$pkgdir/usr/bin/${pkgname}" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" -}
\ No newline at end of file +package() { + cd "$pkgname-$pkgver" + install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE + install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" {History,Readme}.md +} |