Date: Sunday, January 22, 2023 @ 15:07:52
Author: orhun
Revision: 1387675
archrelease: copy trunk to community-x86_64
Added:
cocogitto/repos/community-x86_64/PKGBUILD
(from rev 1387674, cocogitto/trunk/PKGBUILD)
Deleted:
cocogitto/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 59 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-22 15:07:28 UTC (rev 1387674)
+++ PKGBUILD 2023-01-22 15:07:52 UTC (rev 1387675)
@@ -1,51 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]
-# Maintainer: Orhun Parmaksız <[email protected]>
-
-pkgname=cocogitto
-_bin=cog
-pkgver=5.2.0
-pkgrel=1
-pkgdesc='Set of CLI tools for the conventional commit and semver
specifications'
-arch=(x86_64)
-url="https://github.com/$pkgname/$pkgname"
-license=(MIT)
-depends=(git
- gcc-libs
- libgit2
- libgit2.so
- zlib)
-makedepends=(cargo)
-_archive="$pkgname-$pkgver"
-source=("$url/archive/$pkgver/$_archive.tar.gz")
-sha256sums=('99f9dee05597d7721f6d046dbfefba5cb8d1c4ae22ced415f724affb3a6bd0cc')
-
-prepare() {
- cd "$_archive"
- cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
- mkdir completions
-}
-
-build() {
- cd "$_archive"
- cargo build --frozen --release
- local compgen="target/release/$_bin generate-completions"
- $compgen bash > "completions/$_bin"
- $compgen fish > "completions/$_bin.fish"
- $compgen zsh > "completions/_$_bin"
-}
-
-check() {
- cd "$_archive"
- # Test suite is not atomic, relies on user environment such as git user
configs
- # cargo test --frozen
-}
-
-package() {
- cd "$_archive"
- install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_bin"
- install -Dm0644 -t "$pkgdir/usr/share/bash-completion/completions/"
"completions/$_bin"
- install -Dm0644 -t "$pkgdir/usr/share/fish/vendor_completions.d/"
"completions/$_bin.fish"
- install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/"
"completions/_$_bin"
- install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
Copied: cocogitto/repos/community-x86_64/PKGBUILD (from rev 1387674,
cocogitto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-22 15:07:52 UTC (rev 1387675)
@@ -0,0 +1,59 @@
+# Maintainer: Caleb Maclennan <[email protected]
+# Maintainer: Orhun Parmaksız <[email protected]>
+
+pkgname=cocogitto
+_bin=cog
+pkgver=5.3.0
+pkgrel=1
+pkgdesc='Set of CLI tools for the conventional commit and semver
specifications'
+arch=(x86_64)
+url="https://github.com/$pkgname/$pkgname"
+license=(MIT)
+depends=(git
+ gcc-libs
+ libgit2
+ libgit2.so
+ zlib)
+makedepends=(cargo)
+_archive="$pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('c95a8d3d0fd1ca4f122b9e9077e8ff79f1c8a180f2cb5a0afcc6e236495984b5')
+
+prepare() {
+ cd "$_archive"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+ mkdir {completions,man}
+}
+
+build() {
+ cd "$_archive"
+ cargo build --frozen --release
+ local compgen="target/release/$_bin generate-completions"
+ $compgen bash > "completions/$_bin"
+ $compgen fish > "completions/$_bin.fish"
+ $compgen zsh > "completions/_$_bin"
+ local mangen="target/release/$_bin generate-manpage"
+ $mangen cog > "man/$_bin.1"
+ for cmd in 'check' 'commit' 'edit' 'log' 'verify' \
+ 'changelog' 'bump' 'init' 'install-hook' \
+ 'generate-completions'; do
+ $mangen $cmd > "man/$_bin-$cmd.1"
+ done
+}
+
+check() {
+ cd "$_archive"
+ # Test suite is not atomic, relies on user environment such as git user
configs
+ # cargo test --frozen
+}
+
+package() {
+ cd "$_archive"
+ install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_bin"
+ install -Dm0644 -t "$pkgdir/usr/share/bash-completion/completions/"
"completions/$_bin"
+ install -Dm0644 -t "$pkgdir/usr/share/fish/vendor_completions.d/"
"completions/$_bin.fish"
+ install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/"
"completions/_$_bin"
+ install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+ find man/ -type f -exec install -Dm0644 -t "$pkgdir/usr/share/man/man1"
{} \;
+}