summaryrefslogtreecommitdiffstats
path: root/rlr-git
diff options
context:
space:
mode:
authorYigit Sever2022-09-13 18:27:50 +0300
committerYigit Sever2022-09-13 18:27:50 +0300
commitfaa5cff0a1c41cc3b1b116bd20b70c364cdb2bcb (patch)
treec58a8ed579a35543c5a4558cdfef07e26a5171ff /rlr-git
parent0965ca2029549ab6322332f0a636f81de910e250 (diff)
downloadpackages-faa5cff0a1c41cc3b1b116bd20b70c364cdb2bcb.tar.gz
packages-faa5cff0a1c41cc3b1b116bd20b70c364cdb2bcb.tar.bz2
packages-faa5cff0a1c41cc3b1b116bd20b70c364cdb2bcb.zip
rlr-git: added desktop file
Diffstat (limited to 'rlr-git')
-rw-r--r--rlr-git/.SRCINFO4
-rw-r--r--rlr-git/.gitignore5
-rw-r--r--rlr-git/PKGBUILD25
-rw-r--r--rlr-git/rlr.desktop83
4 files changed, 105 insertions, 12 deletions
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 @@
1pkgbase = rlr-git 1pkgbase = rlr-git
2 pkgdesc = interactive pixel screen ruler and protractor 2 pkgdesc = interactive pixel screen ruler and protractor
3 pkgver = r19.3d62f7a 3 pkgver = r25.5fd3169
4 pkgrel = 1 4 pkgrel = 1
5 url = https://github.com/epilys/rlr 5 url = https://github.com/epilys/rlr
6 arch = any 6 arch = any
@@ -10,6 +10,8 @@ pkgbase = rlr-git
10 provides = rlr 10 provides = rlr
11 conflicts = rlr 11 conflicts = rlr
12 source = rlr::git+https://github.com/epilys/rlr 12 source = rlr::git+https://github.com/epilys/rlr
13 source = rlr.desktop
13 sha256sums = SKIP 14 sha256sums = SKIP
15 sha256sums = 7f659ea7e8cb794963ff6881294a8aba388c33bc10c7e14c1ecf58fb241386e7
14 16
15pkgname = rlr-git 17pkgname = 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 @@
1*
2!.gitignore
3!.SRCINFO
4!PKGBUILD
5!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 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com> 1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
2pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' 3pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn'
3pkgver=r19.3d62f7a 4pkgver=r25.5fd3169
4pkgrel=1 5pkgrel=1
5pkgdesc="interactive pixel screen ruler and protractor" 6pkgdesc="interactive pixel screen ruler and protractor"
6arch=('any') 7arch=('any')
7url="https://github.com/epilys/rlr" 8url="https://github.com/epilys/rlr"
8license=('GPL') 9license=('GPL')
9depends=()
10makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion' 10makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion'
11provides=("${pkgname%-git}") 11provides=("${pkgname%-git}")
12conflicts=("${pkgname%-git}") 12conflicts=("${pkgname%-git}")
13source=("${pkgname%-git}::git+${url}") 13source=("${pkgname%-git}::git+${url}" "${pkgname%-git}.desktop")
14sha256sums=('SKIP') 14sha256sums=('SKIP'
15 '7f659ea7e8cb794963ff6881294a8aba388c33bc10c7e14c1ecf58fb241386e7')
15 16
16pkgver() { 17pkgver() {
17 cd "$srcdir/${pkgname%-git}" 18 cd "$srcdir/${pkgname%-git}"
18 # Git, no tags available 19 # git, no tags available
19 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" 20 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
20} 21}
21 22
22prepare() { 23prepare() {
23 cd "$srcdir/${pkgname%-git}" 24 cd "$srcdir/${pkgname%-git}"
24 cargo fetch --locked --target "$CARCH-unknown-linux-gnu" 25 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
25} 26}
26 27
27build() { 28build() {
28 cd "$srcdir/${pkgname%-git}" 29 cd "$srcdir/${pkgname%-git}"
29 export RUSTUP_TOOLCHAIN=stable 30 export RUSTUP_TOOLCHAIN=stable
30 export CARGO_TARGET_DIR=target 31 export CARGO_TARGET_DIR=target
31 cargo build --frozen --release --all-features 32 cargo build --frozen --release --all-features
32} 33}
33 34
34package() { 35package() {
35 cd "$srcdir/${pkgname%-git}" 36 # binary
36 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" 37 install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/"
38 # desktop file
39 install -Dm644 "${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
37} 40}
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 @@
1[Desktop Entry]
2GenericName=Screen Ruler
3GenericName[af]=Skerm Liniaal
4GenericName[ar]=مسطرة الشاشة
5GenericName[bg]=Линийка за екрана
6GenericName[bs]=Ekranski lenjir
7GenericName[ca]=Regle de la pantalla
8GenericName[ca@valencia]=Regle de la pantalla
9GenericName[cs]=Obrazovkové pravítko
10GenericName[cy]=Mesurydd Sgrîn
11GenericName[da]=Skærmlineal
12GenericName[de]=Bildschirmlineal
13GenericName[el]=Κανόνας οθόνης
14GenericName[en_GB]=Screen Ruler
15GenericName[eo]=Ekrana liniilo
16GenericName[es]=Regla para la pantalla
17GenericName[et]=Ekraani joonlaud
18GenericName[eu]=Pantailaren erregela
19GenericName[fa]=خط‌کش پرده
20GenericName[fi]=Näyttöviivain
21GenericName[fr]=Règle d'écran
22GenericName[ga]=Rialóir Scáileáin
23GenericName[gl]=Regra de pantalla
24GenericName[he]=סרגל מסך
25GenericName[hi]=स्क्रीन मापनी
26GenericName[hne]=स्क्रीन मापनी
27GenericName[hr]=Ravnalo
28GenericName[hu]=Képernyővonalzó
29GenericName[ia]=Regula de schermo
30GenericName[id]=Penggaris Layar
31GenericName[is]=Reglustika
32GenericName[it]=Righello per lo schermo
33GenericName[ja]=スクリーンルーラー
34GenericName[kk]=Экран өлшегіші
35GenericName[km]=បន្ទាត់​អេក្រង់
36GenericName[ko]=화면 자
37GenericName[ku]=Rastekê Dîmenderê
38GenericName[lt]=Ekrano liniuotė
39GenericName[lv]=Ekrāna mērlenta
40GenericName[mr]=स्क्रीन मोजपट्टी
41GenericName[ms]=Pembaris Skrin
42GenericName[nb]=Skjermlinjal
43GenericName[nds]=Schirmlineaal
44GenericName[ne]=पर्दा रूलर
45GenericName[nl]=Schermliniaal
46GenericName[nn]=Skjermlinjal
47GenericName[pa]=ਸਕਰੀਨ ਰੀਡਰ
48GenericName[pl]=Linijka ekranowa
49GenericName[pt]=Régua do ecrã
50GenericName[pt_BR]=Régua de tela
51GenericName[ro]=Riglă de ecran
52GenericName[ru]=Экранная линейка
53GenericName[se]=Šearpmalinjála
54GenericName[si]=තිරයේ කෝදුව
55GenericName[sk]=Pravítko obrazovky
56GenericName[sl]=Zaslonsko ravnilo
57GenericName[sr]=Екрански лењир
58GenericName[sr@ijekavian]=Екрански лењир
59GenericName[sr@ijekavianlatin]=Ekranski lenjir
60GenericName[sr@latin]=Ekranski lenjir
61GenericName[sv]=Skärmlinjal
62GenericName[ta]=திரை உருளை
63GenericName[tg]=Ҷадвали экрании KDE
64GenericName[th]=ไม้บรรทัดบนหน้าจอ
65GenericName[tr]=Ekran Cetveli
66GenericName[ug]=ئېكران باشقۇرغۇ
67GenericName[uk]=Лінійка екрана
68GenericName[uz]=Ekran lineykasi
69GenericName[uz@cyrillic]=Экран линейкаси
70GenericName[vi]=Thước đo màn hình
71GenericName[xh]=Screen Ruler
72GenericName[x-test]=xxScreen Rulerxx
73GenericName[zh_CN]=屏幕标尺工具
74GenericName[zh_HK]=螢幕尺規
75GenericName[zh_TW]=螢幕尺規
76Name=rlr
77Exec=rlr
78Type=Application
79Icon=kruler
80Terminal=false
81StartupWMClass=rlr
82StartupNotify=true
83Categories=Gnome;GTK;Graphics;Utilities;