mirror of
https://github.com/archlinux/aur.git
synced 2026-02-04 14:29:01 +01:00
Initial AUR commit (upstream v0.0.81)
This commit is contained in:
commit
283adba1ca
3 changed files with 108 additions and 0 deletions
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
pkgbase = ryelang-git
|
||||
pkgdesc = Rye — a language trying to be flexible about expression, but strict about state (development version)
|
||||
pkgver = 0.0.81.r117.g529fc65
|
||||
pkgrel = 1
|
||||
url = https://ryelang.org/
|
||||
install = ryelang-git.install
|
||||
arch = aarch64
|
||||
arch = x86_64
|
||||
license = BSD-3-Clause
|
||||
makedepends = git
|
||||
makedepends = go
|
||||
depends = glibc
|
||||
provides = ryelang
|
||||
conflicts = ryelang
|
||||
source = git+https://github.com/refaktor/rye.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = ryelang-git
|
||||
76
PKGBUILD
Normal file
76
PKGBUILD
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
# -*- sh -*-
|
||||
|
||||
# Maintainer: Klaus Alexander Seistrup <$(echo 0x1fd+d59decfa=40 | tr 0-9+a-f=x ka-i@p-u.l)>
|
||||
|
||||
_pkgname='ryelang'
|
||||
pkgname="${_pkgname}-git"
|
||||
pkgver=0.0.81.r117.g529fc65
|
||||
pkgrel=1
|
||||
pkgdesc='Rye — a language trying to be flexible about expression, but strict about state (development version)'
|
||||
arch=('aarch64' 'x86_64')
|
||||
url='https://ryelang.org/'
|
||||
_url='https://github.com/refaktor/rye'
|
||||
license=('BSD-3-Clause') # SPDX-License-Identifier: BSD-3-Clause
|
||||
provides=('ryelang')
|
||||
conflicts=("${provides[@]}")
|
||||
depends=('glibc')
|
||||
makedepends=('git' 'go')
|
||||
source=("git+$_url.git")
|
||||
install="$pkgname.install"
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd rye
|
||||
|
||||
git describe --tag --abbrev=7 2>/dev/null \
|
||||
| sed 's/\([^-]*-g\)/r\1/;s/^v//;s/-/./g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd rye
|
||||
|
||||
git clean -dfx
|
||||
go mod tidy
|
||||
}
|
||||
|
||||
build() {
|
||||
local _ver=''; _ver=$(pkgver)
|
||||
|
||||
cd rye
|
||||
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="$CFLAGS"
|
||||
export CGO_CXXFLAGS="$CXXFLAGS"
|
||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||
export CGO_LDFLAGS="$LDFLAGS"
|
||||
|
||||
_opts=(
|
||||
-tags=seccomp
|
||||
-buildmode=pie
|
||||
-trimpath
|
||||
-ldflags="-linkmode=external -X github.com/refaktor/rye/runner.Version=$_ver"
|
||||
-mod=readonly
|
||||
-modcacherw
|
||||
)
|
||||
go build "${_opts[@]}" -o bin/ryelang
|
||||
}
|
||||
|
||||
check() {
|
||||
cd rye
|
||||
|
||||
bin/ryelang -version
|
||||
}
|
||||
|
||||
package() {
|
||||
cd rye
|
||||
|
||||
install -vDm0755 -t "$pkgdir/usr/bin" bin/ryelang
|
||||
|
||||
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
|
||||
cp -va examples "$pkgdir/usr/share/doc/$pkgname/"
|
||||
rm -vf "$pkgdir/usr/share/doc/$pkgname/examples/webapp_1/.#temp.rye"
|
||||
|
||||
install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
}
|
||||
|
||||
# eof
|
||||
14
ryelang-git.install
Normal file
14
ryelang-git.install
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# -*- sh -*-
|
||||
|
||||
post_install() {
|
||||
cat <<__EOT__
|
||||
» NB: The executable is called ‘ryelang’
|
||||
» because ‘rye’ was already taken.
|
||||
__EOT__
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install "$@"
|
||||
}
|
||||
|
||||
# eof
|
||||
Loading…
Add table
Reference in a new issue