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