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

pkgname=emojiterm
pkgver=0.3.2
pkgrel=1
pkgdesc='List and display all available GitHub emojis, using the GitHub API'
arch=(x86_64)
url='https://github.com/xyproto/emojiterm'
license=(BSD)
makedepends=(go git)
source=("git+$url#commit=f311b695fdf95c5f19b2d9bdb7790faf049814e7") # tag: v0.3.2
b2sums=(SKIP)

build() {
  cd $pkgname
  go build -v -mod=vendor -trimpath -buildmode=pie -ldflags="-s -w -extldflags $LDFLAGS"
}

package() {
  install -Dm755 "$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}