diff options
author | Mike Crute <mike@crute.us> | 2023-10-18 12:41:40 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-10-18 12:41:40 -0700 |
commit | 552663ed296f4ab0b3902f296efc4900eba1a060 (patch) | |
tree | de6818153a7065bcf1aec57ebac0d43388b540fc | |
parent | 6c1eed0ff4872d6d5a478294e57ce0e8b90dcab3 (diff) | |
download | golib-552663ed296f4ab0b3902f296efc4900eba1a060.tar.bz2 golib-552663ed296f4ab0b3902f296efc4900eba1a060.tar.xz golib-552663ed296f4ab0b3902f296efc4900eba1a060.zip |
bin/webp: add APKBUILD file
-rw-r--r-- | bin/webp/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bin/webp/APKBUILD b/bin/webp/APKBUILD new file mode 100644 index 0000000..323ecde --- /dev/null +++ b/bin/webp/APKBUILD | |||
@@ -0,0 +1,31 @@ | |||
1 | pkgname=webp-convert-server | ||
2 | pkgver=0.1.0 | ||
3 | pkgrel=0 | ||
4 | pkgdesc="WebP Conversion Server" | ||
5 | url="https://code.crute.us/mcrute/golib/" | ||
6 | arch="all" | ||
7 | license="MIT" | ||
8 | depends="libwebp" | ||
9 | makedepends="go libwebp-dev" | ||
10 | source=" | ||
11 | webp-$pkgver.tar.bz2::https://code.crute.us/mcrute/golib/snapshot/golib-bin/webp/v$pkgver.tar.bz2 | ||
12 | " | ||
13 | options="!check net" | ||
14 | builddir="$srcdir/golib-bin/webp/v$pkgver/bin/webp/" | ||
15 | |||
16 | export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" | ||
17 | export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" | ||
18 | export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" | ||
19 | |||
20 | build() { | ||
21 | go build -o $pkgname main.go | ||
22 | } | ||
23 | |||
24 | package() { | ||
25 | install -Dm755 "$builddir"/$pkgname \ | ||
26 | "$pkgdir"/usr/bin/$pkgname | ||
27 | } | ||
28 | |||
29 | sha512sums=" | ||
30 | e82c13ad35365233baa411316857ad2f3f5590cc1eab7b8697b30b35aa013fcbae4e743224851b5e076ce85e464d1467f5c7abf0512328289da271f1f86697d2 webp-0.1.0.tar.bz2 | ||
31 | " | ||