diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 13:19:11 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:18:40 +0000 |
commit | d58110bfa13e1d1c59a85c316a255d82ccdda6e8 (patch) | |
tree | 1affb42f19780cdb579b548e7f9cdd686a657854 /community/asciinema | |
parent | 2aa214e3d279bfeb8d4ecee95e08f7e0bb015ee9 (diff) | |
download | aports-d58110bfa13e1d1c59a85c316a255d82ccdda6e8.tar.bz2 aports-d58110bfa13e1d1c59a85c316a255d82ccdda6e8.tar.xz |
community/asciinema: modernize abuild
Diffstat (limited to 'community/asciinema')
-rw-r--r-- | community/asciinema/APKBUILD | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/community/asciinema/APKBUILD b/community/asciinema/APKBUILD index 3012879b6d..4e5b4be9f2 100644 --- a/community/asciinema/APKBUILD +++ b/community/asciinema/APKBUILD @@ -14,30 +14,19 @@ subpackages="$pkgname-doc" options="!strip" source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz" -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" - export GOPATH="$_builddir" + cd "$builddir" + export GOPATH="$builddir" mkdir -p src/github.com/asciinema - ln -s "$_builddir" src/github.com/asciinema/asciinema - make build || return 1 + ln -s "$builddir" src/github.com/asciinema/asciinema + make build } package() { - cd "$_builddir" - PREFIX="$pkgdir"/usr make install || return 1 + cd "$builddir" + PREFIX="$pkgdir"/usr make install } -md5sums="f61680ca17328ed43b61a24b1c267e29 asciinema-1.2.0.tar.gz" -sha256sums="64b8c2b034945a99398c5593fd8831c6448fd3b6dd788a979582805bfdcb5746 asciinema-1.2.0.tar.gz" sha512sums="b172fa2c122ce6d4191d898292f70b462f18c9436a7a95b56a3d4405f66a4003d52877b5d632a829f94704f7d8a07c1202f1d3059e1eec6b583b63daf90a9006 asciinema-1.2.0.tar.gz" |