From faa5cff0a1c41cc3b1b116bd20b70c364cdb2bcb Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Sep 2022 18:27:50 +0300 Subject: rlr-git: added desktop file --- rlr-git/.SRCINFO | 4 ++- rlr-git/.gitignore | 5 ++++ rlr-git/PKGBUILD | 25 +++++++++------- rlr-git/rlr.desktop | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 12 deletions(-) create mode 100644 rlr-git/.gitignore create mode 100644 rlr-git/rlr.desktop (limited to 'rlr-git') diff --git a/rlr-git/.SRCINFO b/rlr-git/.SRCINFO index 7969152..7da9ccf 100644 --- a/rlr-git/.SRCINFO +++ b/rlr-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = rlr-git pkgdesc = interactive pixel screen ruler and protractor - pkgver = r19.3d62f7a + pkgver = r25.5fd3169 pkgrel = 1 url = https://github.com/epilys/rlr arch = any @@ -10,6 +10,8 @@ pkgbase = rlr-git provides = rlr conflicts = rlr source = rlr::git+https://github.com/epilys/rlr + source = rlr.desktop sha256sums = SKIP + sha256sums = 7f659ea7e8cb794963ff6881294a8aba388c33bc10c7e14c1ecf58fb241386e7 pkgname = rlr-git diff --git a/rlr-git/.gitignore b/rlr-git/.gitignore new file mode 100644 index 0000000..5ccb7e5 --- /dev/null +++ b/rlr-git/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD +!rlr.desktop diff --git a/rlr-git/PKGBUILD b/rlr-git/PKGBUILD index a1773e0..979f263 100644 --- a/rlr-git/PKGBUILD +++ b/rlr-git/PKGBUILD @@ -1,37 +1,40 @@ # Maintainer: Yigit Sever + pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' -pkgver=r19.3d62f7a +pkgver=r25.5fd3169 pkgrel=1 pkgdesc="interactive pixel screen ruler and protractor" arch=('any') url="https://github.com/epilys/rlr" license=('GPL') -depends=() makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion' provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("${pkgname%-git}::git+${url}") -sha256sums=('SKIP') +source=("${pkgname%-git}::git+${url}" "${pkgname%-git}.desktop") +sha256sums=('SKIP' + '7f659ea7e8cb794963ff6881294a8aba388c33bc10c7e14c1ecf58fb241386e7') pkgver() { cd "$srcdir/${pkgname%-git}" - # Git, no tags available + # git, no tags available printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$srcdir/${pkgname%-git}" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$srcdir/${pkgname%-git}" - export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target - cargo build --frozen --release --all-features + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features } package() { - cd "$srcdir/${pkgname%-git}" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" + # binary + install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/" + # desktop file + install -Dm644 "${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop" } diff --git a/rlr-git/rlr.desktop b/rlr-git/rlr.desktop new file mode 100644 index 0000000..ceec0d0 --- /dev/null +++ b/rlr-git/rlr.desktop @@ -0,0 +1,83 @@ +[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; -- cgit v1.2.3-70-g09d2