blob: 546e1c5353b40acb480cd937e717605069e2c277 (
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
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=carveimg
pkgver=1.2.1
pkgrel=1
pkgdesc='Two image viewing utilities for the terminal, where one uses seam carving'
arch=(x86_64)
url='https://github.com/xyproto/carveimg'
license=(BSD)
makedepends=(git go)
source=("git+$url#commit=248fe686214588e85bb0bcc54e9f96628699cb14") # tag: v1.2.1
b2sums=('SKIP')
build() {
(cd $pkgname/cmd/img && go build -v -mod=vendor -buildmode=pie -trimpath -ldflags="-s -w -extldflags \"${LDFLAGS}\"")
(cd $pkgname/cmd/carve && go build -v -mod=vendor -buildmode=pie -trimpath -ldflags="-s -w -extldflags \"${LDFLAGS}\"")
}
package() {
cd $pkgname
install -Dm755 cmd/img/img "$pkgdir/usr/bin/img"
install -Dm755 cmd/carve/carve "$pkgdir/usr/bin/carve"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|