diff options
author | GVB | 2021-11-03 16:27:01 +0200 |
---|---|---|
committer | GVB | 2021-11-03 16:27:01 +0200 |
commit | 40beff31519b86f4ee5568e2cdc6647a4d947fe9 (patch) | |
tree | ebb21f7d3be8b4eaf2832a6dfaddaa2f811619ff | |
download | aur-40beff31519b86f4ee5568e2cdc6647a4d947fe9.tar.gz |
Creating initial AUR package
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fe33c61f26bc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = bisection + pkgdesc = Algorithm for solving equations + pkgver = r2.cad6efa + pkgrel = 1 + url = https://github.com/GVBilokorenko/bisection + arch = x86_64 + license = MIT + makedepends = git + depends = go + source = bisection::git://github.com/GVBilokorenko/bisection.git + sha512sums = SKIP + +pkgname = bisection diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..874f7dcf687d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Artem Bilokorenko <abilokorenko@gmail.com> +# Maintainer: Artem Vladimirov <mypochtav@gmail.com> +pkgname="bisection" +pkgver="r2.cad6efa" +pkgrel="1" +pkgdesc="Algorithm for solving equations" +arch=("x86_64") +url="https://github.com/GVBilokorenko/bisection" +license=("MIT") +depends=("go") +makedepends=("git") +source=("bisection::git://github.com/GVBilokorenko/bisection.git") +sha512sums=("SKIP") + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + echo "go run $pkgdir/usr/bin/main.go -l \"\$parameterL\" -u \"\$parameterU\" -a \"\$parameterA\" -c \"\$parameterC\"" >> "bisection.sh" + install -Dm755 ./bisection.sh "$pkgdir/usr/bin/bisection" + install -Dm755 ./main.go "$pkgdir/usr/bin/" + install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname" +} |