kuro icon indicating copy to clipboard operation
kuro copied to clipboard

[Feature šŸš€]: AUR package for Arch Linux

Open kellerman opened this issue 2 years ago ā€¢ 16 comments

Hello. I seem to find the .pacman file which could be installed locally by using pacman -U. But cant seem to find a AUR package. Installing and from AUR would be very much easier. I think modifying the ao pkgbuild slightly would do the job. Just need to create the AUR package. km

kellerman avatar Mar 10 '22 18:03 kellerman

Hey :wave: I'm not a very experienced Arch user, I thought the pacman package would suffice as in my experience with Arch was easier to install pacman than AUR. I've picked up some articles and this seems feasible, so I'll work on adding an AUR package when I have the time, but if someone wants to have a go at it, feel free :+1:

davidsmorais avatar Mar 22 '22 11:03 davidsmorais

isn't this your AUR package? https://aur.archlinux.org/packages/ao

MaaxGr avatar Apr 30 '22 14:04 MaaxGr

@MaaxGr No, it is not :disappointed:
I'll try to tackle this and other stores in the coming weeks

davidsmorais avatar May 02 '22 09:05 davidsmorais

So someone else is just using your upstream? :D

MaaxGr avatar May 06 '22 13:05 MaaxGr

@MaaxGr Indeed :point_down: image

I need to get around to publish Kuro in AUR, but I don't use Arch Linux and I've had a little difficulty trying to set up the publishing environment. Hopefully in the next weeks I'll take care of this

davidsmorais avatar May 09 '22 09:05 davidsmorais

# Maintainer: ???
pkgname=kuro-appimage
pkgver=8.1.3
pkgrel=1
pkgdesc="An elegant Microsoft ToDo desktop client for Linux (a fork of Ao)"
arch=("x86_64")
url="https://github.com/davidsmorais/kuro"
license=("unknown")
_pkgname="Kuro-${pkgver}.AppImage"
noextract=(${_pkgname})
options=("!strip")
provides=("kuro")
optdepends=()
source=("https://github.com/davidsmorais/kuro/releases/download/v${pkgver}/${_pkgname}")
sha512sums=("SKIP")

_installdir=/opt/kuro

prepare() {
    cd ${srcdir}
    chmod a+x ${_pkgname}
    ${srcdir}/${_pkgname} --appimage-extract >/dev/null
    sed -i "s+AppRun+env DESKTOPINTEGRATION=no ${_installdir}/Kuro.AppImage+" "squashfs-root/kuro.desktop"
    sed -i "s+Icon=kuro+Icon=kuro-appimage+" "squashfs-root/kuro.desktop"
}

package() {
    install -Dm755 ${_pkgname} "${pkgdir}/${_installdir}/Kuro.AppImage"
    install -Dm644 "squashfs-root/usr/share/icons/hicolor/1024x1024/apps/kuro.png" "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/kuro-appimage.png"
    install -Dm644 "squashfs-root/usr/share/icons/hicolor/512x512/apps/kuro.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/kuro-appimage.png"
    install -Dm644 "squashfs-root/usr/share/icons/hicolor/256x256/apps/kuro.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/kuro-appimage.png"
    install -Dm644 "squashfs-root/usr/share/icons/hicolor/128x128/apps/kuro.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/kuro-appimage.png"
    install -Dm644 "squashfs-root/kuro.desktop" "${pkgdir}/usr/share/applications/kuro-appimage.desktop"
}

this PKGBUILD file may helps.

but version 8.1.3 doesn't work, you can change pkgver to 8.1.0( #37 ) and change _pkgname from Kuro-${pkgver}.AppImage to Kuro.${pkgver}.AppImage. then, just run makepkg -sri and it works.

@davidsmorais if you can name the package with a fixed naming scheme, then after you release an update , you just need to change the version number here then update the sha512 value and push it to the AUR.

i'd like to become the AUR package maintainer but i have my own works to do... so i'm sorry for that.

Reverier-Xu avatar Jun 22 '22 05:06 Reverier-Xu

Published kuro-appimage in AUR.

https://aur.archlinux.org/packages/kuro-appimage

paru -S kuro-appimage

or

yay -S kuro-appimage

Reverier-Xu avatar Jun 22 '22 18:06 Reverier-Xu

@MaaxGr @davidsmorais As far as I know, there is nothing wrong with someone else 'using your upstream', nowhere in the package I claim the ownership of the upstream. I did not even wrote the original PKGBUILD, I am just maintaining it, because I am personally using Kuro.

That being said, I will happily transfer the ownership to you. I do not like the package being named ao, but migration will mean inconveniencing the current user base of the package.

@Reverier-Xu Although appimage version will have its own uses, I believe there should also be a package using the .pacman file. Current PKGBUILD I am using utilizes .deb file, which is suboptimal.

btasdelen avatar Jun 22 '22 18:06 btasdelen

Hey @bilal-tasdelen šŸ‘‹

When I forked Ao, my intention was to get it working to as many Linux users as possible, so I thank you for changing Ao's upstream to KurošŸ‘Œ I also have no problem at all with you keeping ownership of the current Ao AUR package or even open a new one for Kuro. But it's like I said before, I don't have much experience with Arch, so I'm cool if someone else wants to help deploy this to AUR in any format, while I don't get around to it šŸ˜“

davidsmorais avatar Jun 22 '22 19:06 davidsmorais

Alright, I will be of service to keep this nice package alive and kicking.

To respect your branding, I will create a new package named kuro. I already prepared a PKGBUILD using your Arch Linux packaging (.pacman file), I hope it will work. I will let ao package stay for a couple of weeks, warning the users to switch to kuro package, as ao will be deleted.

btasdelen avatar Jun 23 '22 03:06 btasdelen

Thank you :heart:

davidsmorais avatar Jun 23 '22 09:06 davidsmorais

Thanks for publishing packages on AUR. You even have an App-image over there, which is great, because it installs on my Manjaro system without hitch. Could you maybe update the App-image on AUR to the newest version?

shmu26 avatar Dec 17 '22 19:12 shmu26

With the regular AUR package, I got the following error: `Preparingā€¦ Synchronizing package databasesā€¦ unable to lock database Failed to synchronize databases Refreshing AURā€¦ Cloning kuro build filesā€¦ Generating kuro informationā€¦ Checking kuro dependenciesā€¦ Resolving dependenciesā€¦ Checking inter-conflictsā€¦

Building kuroā€¦ ==> Making package: kuro 8.1.6-3 (Fri 16 Dec 2022 03:06:26 PM IST) ==> Checking runtime dependenciesā€¦ ==> Checking buildtime dependenciesā€¦ ==> Retrieving sourcesā€¦ -> Found kuro -> Found kuro.desktop -> Downloading kuro-8.1.6.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 0 0 0 0 0 0 0 0 --:ā€“:-- --:ā€“:-- --:ā€“:-- 0 0 0 0 0 0 0 0 0 --:ā€“:-- --:ā€“:-- --:ā€“:-- 0

0 0 0 0 0 0 0 0 --:ā€“:-- 0:00:01 --:ā€“:-- 0 0 0 0 0 0 0 0 0 --:ā€“:-- 0:00:02 --:ā€“:-- 0 0 0 0 0 0 0 0 0 --:ā€“:-- 0:00:03 --:ā€“:-- 0 0 0 0 0 0 0 0 0 --:ā€“:-- 0:00:04 --:ā€“:-- 0 0 0 0 0 0 0 0 0 --:ā€“:-- 0:00:05 --:ā€“:-- 0 100 730 0 730 0 0 116 0 --:ā€“:-- 0:00:06 --:ā€“:-- 142 100 551k 0 551k 0 0 78985 0 --:ā€“:-- 0:00:07 --:ā€“:-- 111k 100 720k 0 720k 0 0 97k 0 --:ā€“:-- 0:00:07 --:ā€“:-- 173k ==> Validating source files with sha256sumsā€¦ kuro ā€¦ Passed kuro.desktop ā€¦ Passed kuro-8.1.6.tar.gz ā€¦ Passed ==> Removing existing $srcdir/ directoryā€¦ ==> Extracting sourcesā€¦ -> Extracting kuro-8.1.6.tar.gz with bsdtar ==> Starting build()ā€¦ yarn install v1.22.19 [1/4] Resolving packagesā€¦ [2/4] Fetching packagesā€¦ [3/4] Linking dependenciesā€¦ warning ā€œxo > [email protected]ā€ has unmet peer dependency ā€œwebpack@>=1.11.0ā€. [4/4] Building fresh packagesā€¦ error /var/tmp/pamac-build-shmuel/kuro/src/kuro-8.1.6/node_modules/electron: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /var/tmp/pamac-build-shmuel/kuro/src/kuro-8.1.6/node_modules/electron Output: RequestError: unable to verify the first certificate at ClientRequest. (/var/tmp/pamac-build-shmuel/kuro/src/kuro-8.1.6/node_modules/got/source/request-as-event-emitter.js:178:14) at Object.onceWrapper (node:events:628:26) at ClientRequest.emit (node:events:525:35) at origin.emit (/var/tmp/pamac-build-shmuel/kuro/src/kuro-8.1.6/node_modules/@szmarczak/http-timer/source/index.js:37:11) at TLSSocket.socketErrorListener (node:_http_client:490:9) at TLSSocket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ==> ERROR: A failure occurred in build(). Abortingā€¦`

shmu26 avatar Dec 17 '22 19:12 shmu26

Thanks for publishing packages on AUR. You even have an App-image over there, which is great, because it installs on my Manjaro system without hitch. Could you maybe update the App-image on AUR to the newest version?

I apologize for the late reply, I'm infected with the covid-19 these days. I will update the newest version to AUR now. I don't have much time to spend on maintaining the package, so I can transfer the maintenance of this package to someone if it want to take over the maintenance.

Reverier-Xu avatar Dec 20 '22 10:12 Reverier-Xu

Thanks @Reverier-Xu :pray: I've also been busy with life affairs, will try to figure out how to work with AUR in my Debian based OS and possibly add a manual deployment script so I can update the AUR package whenever I release a new version here/Snap.

davidsmorais avatar Dec 20 '22 12:12 davidsmorais

Hi, tugyan had uploaded an AUR package kuro which build from source.

BTW, please refer nvcheck and aurpublish if you want to update AUR package per release.

zjuyk avatar Jun 04 '23 00:06 zjuyk