blob: 833fbbb4f183713fc21b85b9184a6526b606f1a4 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=o
pkgver=2.37.2
pkgrel=1
pkgdesc='Text editor'
arch=(x86_64)
url='https://github.com/xyproto/o'
license=(BSD)
makedepends=(git go)
source=("git+$url#commit=234c38c3b50ff2ac5497185846d67d0b97c6bfd4") # tag: 2.37.2
optdepends=('asciidoctor: for writing man pages'
'astyle: for formatting C#'
'autopep8: for formatting Python'
'brittany: for formatting Haskell'
'clang: for formatting C++ code with clang-format'
'crystal: for compiling Crystal'
'cxx: for compiling C++'
'fpc: for compiling Object Pascal'
'fstabfmt: for formatting /etc/fstab'
'ghc: for compiling Haskell'
'google-java-format: for formatting Java'
'guessica: for updating PKGBUILD files'
'java-environment: for compiling Java'
'kotlin: for compiling Kotlin'
'lua: for compiling Lua'
'lua-format: for formatting Lua'
'ocaml: for compiling and formatting OCaml'
'odin: for compiling Odin'
'pandoc: for exporting Markdown to PDF'
'rustup: for compiling and formatting Rust'
'scala: for compiling Scala'
'scdoc: for writing man pages'
'tidy: for formatting HTML'
'v: for compiling and formatting V'
'zig: for compiling and formatting Zig')
b2sums=(SKIP)
build() {
cd $pkgname
go build -v -mod=vendor -trimpath -buildmode=pie -ldflags="-s -w -extldflags \"${LDFLAGS}\""
}
package() {
cd $pkgname
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
ln -sf /usr/bin/o "$pkgdir/usr/bin/light"
ln -sf /usr/bin/o "$pkgdir/usr/bin/red"
install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|