Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUR #61

Open
omnigenous opened this issue Sep 14, 2024 · 10 comments
Open

AUR #61

omnigenous opened this issue Sep 14, 2024 · 10 comments

Comments

@omnigenous
Copy link

https://aur.archlinux.org/

Please, consider publishing to Arch User Repositories!

-bin Would be more desirable since rust takes forever to build.

@guilhermeprokisch
Copy link
Owner

@omnigenous I will take a look on it.

Thanks

@guilhermeprokisch
Copy link
Owner

guilhermeprokisch commented Sep 14, 2024

@omnigenous I've spending some time trying to make it work. I don't have a linux machine here and even not able to use a virtual one easily on m1 macos. But I a made POC version on AUR, can you help to see if it's working? Probably it's super broke.

https://aur.archlinux.org/packages/see

@omnigenous
Copy link
Author

https://github.com/guilhermeprokisch/see/releases/download/v0.8.1/see-cat-0.8.1-x86_64.tar.gz returns 404

==> Retrieving sources...
  -> Downloading see-cat-0.8.1-x86_64.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/guilhermeprokisch/see/releases/download/v0.8.1/see-cat-0.8.1-x86_64.tar.gz
    Aborting...
 -> error downloading sources: /home/user/.cache/yay/see 
	context: exit status 1 
	

:: (1/1) Parsing SRCINFO: see
 -> failed to parse see: Line 3: key "pkgver" can not occur after pkgname: pkgver =goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x5e
main.main.func2()
	github.com/Jguer/yay/v12/main.go:125 +0x45
panic({0x63920d09d800?, 0xc000282120?})
	runtime/panic.go:770 +0x132
github.com/Jguer/yay/v12/pkg/sync/srcinfo.NewService({0x63920d11e230, 0xc0002ca120}, 0xc0001cc200, 0xc00051e000, {0x63920d11bbb8, 0xc0002bc000}, {0x63920d11ab90, 0xc0002aa200}, 0xc0001d4540)
	github.com/Jguer/yay/v12/pkg/sync/srcinfo/service.go:37 +0x1c7
github.com/Jguer/yay/v12/pkg/sync.(*OperationService).Run(0xc0001d4330, {0x63920d119990, 0x63920d412c00}, 0xc0002de070, 0xc0001d5d10, {0xc000594070, 0x1, 0x1}, {0x63920d412c00, 0x0, ...})
	github.com/Jguer/yay/v12/pkg/sync/sync.go:74 +0xdbf
main.syncInstall({0x63920d119990, 0x63920d412c00}, 0xc0002de070, 0xc0001d5d10, {0x63920d11e230, 0xc0002ca120})
	github.com/Jguer/yay/v12/sync.go:90 +0xf31
main.handleSync({0x63920d119990, 0x63920d412c00}, 0xc0002de070, 0xc0001d5d10, {0x63920d11e230, 0xc0002ca120})
	github.com/Jguer/yay/v12/cmd.go:358 +0x91f
main.handleCmd({0x63920d119990, 0x63920d412c00}, 0xc0002de070, 0xc0001d5d10, {0x63920d11e230, 0xc0002ca120})
	github.com/Jguer/yay/v12/cmd.go:167 +0x345
main.main()
	github.com/Jguer/yay/v12/main.go:131 +0x69f

@guilhermeprokisch
Copy link
Owner

@omnigenous ok. I will take a another try later then, thanks

@guilhermeprokisch
Copy link
Owner

guilhermeprokisch commented Sep 15, 2024

@omnigenous, can you, for now, utilize the installation of prebuilt binaries via shell script? Is there an issue with that method?

I attempted to handle it the AUR deploy, but currently, I am unable to manage. However, if anyone has suggestions on how to simplify the process please submitted a PR, it would be greatly appreciated.

@omnigenous
Copy link
Author

@omnigenous, can you, for now, utilize the installation of prebuilt binaries via shell script? Is there an issue with that method?

Yes, no issue there, works as expected! Just want to be able to upgrade see with rest of a system.

@adamperkowski
Copy link

adamperkowski commented Oct 14, 2024

@guilhermeprokisch PKGBUILD for the package is wrong (and outdated). If you could add me as a co-maintainer (adamperkowski), I'd update it.

@adamperkowski
Copy link

adamperkowski commented Oct 14, 2024

Actually, here's the right version for see:

# Maintainer: Guilherme Prokisch <guilherme.prokisch@gmail.com>
# Maintainer: Adam Perkowski <adas1per@protonmail.com>

pkgname=see
pkgver=0.8.1
pkgrel=2
pkgdesc="A cute cat(1)"
url="https://github.com/guilhermeprokisch/$pkgname"
license=("MIT")
arch=("x86_64")
provides=($pkgname)
conflicts=($pkgname)
source=("$pkgname-$pkgver.tar.gz::https://github.com/guilhermeprokisch/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('763549cd191f1c72ae3364fb0beb765cf0869cb849de2a385d6afc2cc64aaf2b')
makedepends=('rustup')
depends=('glibc' 'gcc-libs')

prepare() {
    export RUSTUP_TOOLCHAIN=stable

    cd "$pkgname-$pkgver"

    cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target

    cd "$pkgname-$pkgver"

    cargo build --frozen --release --all-features
}

package() {
    cd "$pkgname-$pkgver"

    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}

If you want it to be see-cat, you need to remove this package (file a removal request) and create a new one (see-cat). That's just how it works in the AUR.

You should also create see-bin. Here's an example.

@guilhermeprokisch
Copy link
Owner

@adamperkowski sorry for the late reply, I was busy these weeks. I will check this ASAP. Thanks

@adamperkowski
Copy link

@adamperkowski sorry for the late reply, I was busy these weeks. I will check this ASAP. Thanks

No problem. You're welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants