summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7833d13b21a8c703caa1129d71153797f45ebc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=png2svg
pkgver=1.3.2
pkgrel=1
pkgdesc='Utility for converting small PNG images to SVG'
arch=(x86_64)
url='https://github.com/xyproto/png2svg'
license=(MIT)
makedepends=(git go)
source=("git+$url#tag=$pkgver")
sha256sums=(SKIP)

build() {
  cd $pkgname/cmd/$pkgname

  go build \
    -gcflags "all=-trimpath=${PWD}" \
    -asmflags "all=-trimpath=${PWD}" \
    -ldflags "-extldflags ${LDFLAGS}" \
    .
}

package() {
  install -Dm755 -t "$pkgdir/usr/bin" $pkgname/cmd/$pkgname/$pkgname
}

# vim: ts=2 sw=2 et: