Package Details: owo-git 0-1

Git Clone URL: https://aur.archlinux.org/owo-git.git (read-only, click to copy)
Package Base: owo-git
Description: cli owoifier
Upstream URL: https://code.pyuku.com/neko/owo
Licenses: GPL
Submitter: pyuku
Maintainer: pyuku
Last Packager: pyuku
Votes: 1
Popularity: 0.32
First Submitted: 2020-10-08 21:18
Last Updated: 2020-10-08 21:18

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

katt commented on 2020-10-13 15:38

  • Fails to download with error:
fatal: unable to connect to code.pyuku.com:
code.pyuku.com[0: 167.71.86.107]: errno=Connection refused
code.pyuku.com[1: 2604:a880:800:c1::1a3:4001]: errno=Network is unreachable
  • wrong directory being cd'd into so it fails right at the pkgver() already.

  • -git package should provide % conflict with non-git version.

diff --git a/PKGBUILD b/PKGBUILD
index 23c7bdc..257d1a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,27 @@
 pkgname="owo-git"
-pkgver=0
+pkgver=r12.03ca3bd
 pkgrel=1
 pkgdesc="cli owoifier"
 arch=("any")
 license=("GPL")
 makedepends=("git")
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
 url="https://code.pyuku.com/neko/owo"
-source=("git://code.pyuku.com/neko/owo.git")
+source=("git+https://code.pyuku.com/neko/owo.git")
+md5sums=('SKIP')
+
+pkgver() {
+        cd "${pkgname%-git}"
+        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}

 build() {
-        cd "$pkgname"
+        cd "${pkgname%-git}"
         make
 }

 package() {
-        cd "$pkgname"
+        cd "${pkgname%-git}"
         make DESTDIR="${pkgdir}" PREFIX="/usr" install
 }
-
-pkgver() {
-  cd "$pkgname"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-md5sums=('SKIP')

With all these things fixed, it still doesn't work because the makefile doesn't create the folders needed.

==> Starting package()...
install owo /build/owo-git/pkg/owo-git/usr/bin
install: cannot create regular file '/build/owo-git/pkg/owo-git/usr/bin': No such file or directory
make: *** [Makefile:14: install] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/katt/build

caltlgin commented on 2020-09-03 18:48