Created
July 26, 2016 14:55
-
-
Save truatpasteurdotfr/32018aab185c043274b929ffe29bf454 to your computer and use it in GitHub Desktop.
piknik APKBUILD/alpine initial version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# contributor: "Tru Huynh <[email protected]>" | |
# Maintainer: "Tru Huynh <[email protected]>" | |
pkgname=piknik | |
pkgver=0.7 | |
pkgrel=0 | |
pkgdesc="Copy/paste anything over the network" | |
url="https://github.com/jedisct1/piknik" | |
arch="x86_64" | |
license="ISC" | |
depends="" | |
depends_dev="git go" | |
install="" | |
#subpackages="$pkgname-doc $pkgname-examples" | |
source="${pkgname}-${pkgver}.tar.gz::https://github.com/jedisct1/piknik/archive/0.7.tar.gz" | |
builddir=$srcdir/${pkgname}-${pkgver} | |
build() { | |
cd "$builddir" | |
export GOPATH="$builddir" | |
go get github.com/jedisct1/piknik || return 1 | |
} | |
package() { | |
cd "$builddir" | |
mkdir -p "$pkgdir"/usr/bin | |
install -Dm755 bin/piknik "$pkgdir"/usr/bin || return 1 | |
} | |
doc() { | |
arch="noarch" | |
cd "$builddir" | |
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname" || return 1 | |
# Doc files | |
_docs="LICENSE ChangeLog README.md" | |
for _doc in $_docs; do | |
install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \ | |
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 | |
done | |
} | |
examples() { | |
arch="noarch" | |
# Put the examples into a seperate package | |
cd "$builddir" | |
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1 | |
install -Dm644 zsh.aliases "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1 | |
} | |
md5sums="ade0cd6dbd48e3d9ec05db6a0da8867d piknik-0.7.tar.gz" | |
sha256sums="7827db4aa312162a47cf3cc93bd6b53c50e10e8821b1d062764366cc7f5b2436 piknik-0.7.tar.gz" | |
sha512sums="1087c7e342a5b54ed5beeb5c852b0a8a007adfd08925fc7261cc558396085fb5607f662656b04ddc14848b2e9a9a4716c00ec495184a37f1adc4d0ee3ab0acf4 piknik-0.7.tar.gz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment