Package Details: rlr-git r31.463c617-1

Git Clone URL: https://aur.archlinux.org/rlr-git.git (read-only, click to copy)
Package Base: rlr-git
Description: interactive pixel screen ruler and protractor
Upstream URL: https://github.com/epilys/rlr
Licenses: GPL
Conflicts: rlr
Provides: rlr
Submitter: yigits
Maintainer: yigits
Last Packager: yigits
Votes: 0
Popularity: 0.000000
First Submitted: 2021-12-20 08:48 (UTC)
Last Updated: 2022-10-08 14:20 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

somepaulo commented on 2022-10-07 15:44 (UTC)

There's another little bug. The symbolic icon file has a dot instead of a dash in the source. I've notified the dev, but for now line 43 should read:

# symbolic icon
    install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg"

Note the dot in the first path is replaced by a dash in the second path to comply with icon naming standards.

yigits commented on 2022-10-07 15:35 (UTC)

@somepaulo: ugh, sorry!

should be all fine now

somepaulo commented on 2022-10-07 15:21 (UTC)

Thank you!

Sorry for being such a nag, but you missed the word -symbolic on line 43 (two times, before the extension name). As it is, the PKGBUILD installs the same main app icon into both locations. Line 43 should read:

# symbolic icon
    install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg"

yigits commented on 2022-10-06 22:13 (UTC)

@somepaulo: oops, fixed!

somepaulo commented on 2022-10-06 21:58 (UTC) (edited on 2022-10-06 21:59 (UTC) by somepaulo)

Great, thank you! I helped the dev with that a little bit.

I think you missed the symbolic icon and installed the .png logo (used only on the github page) as an icon. Only the .svg files are icons. So by looking at the PKGBUILD I guess the last part should be like this:

package() {
    # binary
    install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/"
    # desktop file
    install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
    # main icon
    install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg"
    # symbolic icon
    install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg"
}

yigits commented on 2022-10-03 21:31 (UTC)

@somepaulo: all done, great work on those icons!

somepaulo commented on 2022-10-03 15:45 (UTC)

The developer has now included a .desktop file and respective icons (app & symbolic). He says, though, that cargo doesn't allow to install those files on build. I'm not an expert in cargo or PKGBUILD files, but maybe there's a way to make PKGBUILD copy the .desktop and icon files into their intended system locations when installing the app?

yigits commented on 2022-09-13 15:27 (UTC)

@somepaulo: thank you for providing one, added

somepaulo commented on 2022-09-09 00:49 (UTC)

Please consider adding a rlr.desktop launcher file. Here's an example referencing the kruler icon available in several modern icon themes:

[Desktop Entry]
GenericName=Screen Ruler
GenericName[af]=Skerm Liniaal
GenericName[ar]=مسطرة الشاشة
GenericName[bg]=Линийка за екрана
GenericName[bs]=Ekranski lenjir
GenericName[ca]=Regle de la pantalla
GenericName[ca@valencia]=Regle de la pantalla
GenericName[cs]=Obrazovkové pravítko
GenericName[cy]=Mesurydd Sgrîn
GenericName[da]=Skærmlineal
GenericName[de]=Bildschirmlineal
GenericName[el]=Κανόνας οθόνης
GenericName[en_GB]=Screen Ruler
GenericName[eo]=Ekrana liniilo
GenericName[es]=Regla para la pantalla
GenericName[et]=Ekraani joonlaud
GenericName[eu]=Pantailaren erregela
GenericName[fa]=خط‌کش پرده
GenericName[fi]=Näyttöviivain
GenericName[fr]=Règle d'écran
GenericName[ga]=Rialóir Scáileáin
GenericName[gl]=Regra de pantalla
GenericName[he]=סרגל מסך
GenericName[hi]=स्क्रीन मापनी
GenericName[hne]=स्क्रीन मापनी
GenericName[hr]=Ravnalo
GenericName[hu]=Képernyővonalzó
GenericName[ia]=Regula de schermo
GenericName[id]=Penggaris Layar
GenericName[is]=Reglustika
GenericName[it]=Righello per lo schermo
GenericName[ja]=スクリーンルーラー
GenericName[kk]=Экран өлшегіші
GenericName[km]=បន្ទាត់​អេក្រង់
GenericName[ko]=화면 자
GenericName[ku]=Rastekê Dîmenderê
GenericName[lt]=Ekrano liniuotė
GenericName[lv]=Ekrāna mērlenta
GenericName[mr]=स्क्रीन मोजपट्टी
GenericName[ms]=Pembaris Skrin
GenericName[nb]=Skjermlinjal
GenericName[nds]=Schirmlineaal
GenericName[ne]=पर्दा रूलर
GenericName[nl]=Schermliniaal
GenericName[nn]=Skjermlinjal
GenericName[pa]=ਸਕਰੀਨ ਰੀਡਰ
GenericName[pl]=Linijka ekranowa
GenericName[pt]=Régua do ecrã
GenericName[pt_BR]=Régua de tela
GenericName[ro]=Riglă de ecran
GenericName[ru]=Экранная линейка
GenericName[se]=Šearpmalinjála
GenericName[si]=තිරයේ කෝදුව
GenericName[sk]=Pravítko obrazovky
GenericName[sl]=Zaslonsko ravnilo
GenericName[sr]=Екрански лењир
GenericName[sr@ijekavian]=Екрански лењир
GenericName[sr@ijekavianlatin]=Ekranski lenjir
GenericName[sr@latin]=Ekranski lenjir
GenericName[sv]=Skärmlinjal
GenericName[ta]=திரை உருளை
GenericName[tg]=Ҷадвали экрании KDE
GenericName[th]=ไม้บรรทัดบนหน้าจอ
GenericName[tr]=Ekran Cetveli
GenericName[ug]=ئېكران باشقۇرغۇ
GenericName[uk]=Лінійка екрана
GenericName[uz]=Ekran lineykasi
GenericName[uz@cyrillic]=Экран линейкаси
GenericName[vi]=Thước đo màn hình
GenericName[xh]=Screen Ruler
GenericName[x-test]=xxScreen Rulerxx
GenericName[zh_CN]=屏幕标尺工具
GenericName[zh_HK]=螢幕尺規
GenericName[zh_TW]=螢幕尺規
Name=rlr
Exec=rlr
Type=Application
Icon=kruler
Terminal=false
StartupWMClass=rlr
StartupNotify=true
Categories=Gnome;GTK;Graphics;Utilities;