aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/webp/APKBUILD31
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 @@
1pkgname=webp-convert-server
2pkgver=0.1.0
3pkgrel=0
4pkgdesc="WebP Conversion Server"
5url="https://code.crute.us/mcrute/golib/"
6arch="all"
7license="MIT"
8depends="libwebp"
9makedepends="go libwebp-dev"
10source="
11 webp-$pkgver.tar.bz2::https://code.crute.us/mcrute/golib/snapshot/golib-bin/webp/v$pkgver.tar.bz2
12 "
13options="!check net"
14builddir="$srcdir/golib-bin/webp/v$pkgver/bin/webp/"
15
16export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
17export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
18export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
19
20build() {
21 go build -o $pkgname main.go
22}
23
24package() {
25 install -Dm755 "$builddir"/$pkgname \
26 "$pkgdir"/usr/bin/$pkgname
27}
28
29sha512sums="
30e82c13ad35365233baa411316857ad2f3f5590cc1eab7b8697b30b35aa013fcbae4e743224851b5e076ce85e464d1467f5c7abf0512328289da271f1f86697d2 webp-0.1.0.tar.bz2
31"