blob: 65b61e0779a8e0b4fe34b31ed0267d0ceed31228 (
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
29
30
31
32
33
34
35
36
|
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
_pkgname=oh-my-update
pkgname=omu
pkgver=0.1.5
pkgrel=1
pkgdesc="$_pkgname: oh-my-zsh plugin & theme updater"
arch=('x86_64')
url="https://github.com/utox39/$_pkgname"
license=('MIT')
source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('aebee6180d28e0ceee8acce45f2a3199715878037f263efef6533dabe398dd47')
makedepends=('go')
depends=('glibc')
build() {
cd "$_pkgname-$pkgver"
export GOFLAGS='-buildmode=pie -trimpath -ldflags=-linkmode=external'
go build "$pkgname.go"
}
check() {
cd "$_pkgname-$pkgver"
go test
}
package() {
cd "$_pkgname-$pkgver"
install -Dm0755 "$pkgname" -t "$pkgdir/usr/bin"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -d "$pkgdir/usr/share/doc/$pkgname"
cp ./*.md "$pkgdir/usr/share/doc/$pkgname"
}
# vim: ts=2 sw=2 et:
|