From bacdbc90efc8cd407b5ce658e3616748ae6c8ea3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 20 Dec 2021 11:47:46 +0300 Subject: Publish to AUR --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..7969152 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = rlr-git + pkgdesc = interactive pixel screen ruler and protractor + pkgver = r19.3d62f7a + pkgrel = 1 + url = https://github.com/epilys/rlr + arch = any + license = GPL + makedepends = git + makedepends = cargo + provides = rlr + conflicts = rlr + source = rlr::git+https://github.com/epilys/rlr + sha256sums = SKIP + +pkgname = rlr-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a1773e0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Yigit Sever +pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' +pkgver=r19.3d62f7a +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') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + # 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" +} + +build() { + cd "$srcdir/${pkgname%-git}" + 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}" +} -- cgit v1.2.3-70-g09d2 From 84b3dae3d12c3b4acbc371a56bc37f0ecb9490dc Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Sep 2022 18:26:09 +0300 Subject: Add desktop file Courtesy of AUR user somepaulo --- .SRCINFO | 4 ++- .gitignore | 5 ++++ PKGBUILD | 25 +++++++++++-------- rlr.desktop | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 12 deletions(-) create mode 100644 .gitignore create mode 100644 rlr.desktop diff --git a/.SRCINFO b/.SRCINFO index 7969152..7da9ccf 100644 --- a/.SRCINFO +++ b/.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/.gitignore b/.gitignore new file mode 100644 index 0000000..5ccb7e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD +!rlr.desktop diff --git a/PKGBUILD b/PKGBUILD index a1773e0..979f263 100644 --- a/PKGBUILD +++ b/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.desktop b/rlr.desktop new file mode 100644 index 0000000..ceec0d0 --- /dev/null +++ b/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 From e1fef9eae86e896a641008bf320640f04ad94be0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 4 Oct 2022 00:30:45 +0300 Subject: use upstream's icons & desktop file --- .SRCINFO | 4 +-- PKGBUILD | 17 +++++++------ rlr.desktop | 83 ------------------------------------------------------------- 3 files changed, 11 insertions(+), 93 deletions(-) delete mode 100644 rlr.desktop diff --git a/.SRCINFO b/.SRCINFO index 7da9ccf..f472892 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = rlr-git pkgdesc = interactive pixel screen ruler and protractor - pkgver = r25.5fd3169 + pkgver = r29.26ca7b5 pkgrel = 1 url = https://github.com/epilys/rlr arch = any @@ -10,8 +10,6 @@ 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/PKGBUILD b/PKGBUILD index 979f263..c2cbef0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,18 +1,17 @@ # Maintainer: Yigit Sever -pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' -pkgver=r25.5fd3169 +pkgname=rlr-git +pkgver=r29.26ca7b5 pkgrel=1 pkgdesc="interactive pixel screen ruler and protractor" arch=('any') url="https://github.com/epilys/rlr" license=('GPL') -makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion' +makedepends=('git' 'cargo') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("${pkgname%-git}::git+${url}" "${pkgname%-git}.desktop") -sha256sums=('SKIP' - '7f659ea7e8cb794963ff6881294a8aba388c33bc10c7e14c1ecf58fb241386e7') +source=("${pkgname%-git}::git+${url}") +sha256sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" @@ -36,5 +35,9 @@ package() { # 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" + install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop" + # png icon + install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname%-git}.png" + # svg icon + install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.png" } diff --git a/rlr.desktop b/rlr.desktop deleted file mode 100644 index ceec0d0..0000000 --- a/rlr.desktop +++ /dev/null @@ -1,83 +0,0 @@ -[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 From fee6f20ad7d6d96fcbd2ba96878b3deee0cb1f69 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 7 Oct 2022 01:13:27 +0300 Subject: fix icons --- .SRCINFO | 2 +- PKGBUILD | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f472892..8cb9638 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = rlr-git pkgdesc = interactive pixel screen ruler and protractor - pkgver = r29.26ca7b5 + pkgver = r30.bff17e8 pkgrel = 1 url = https://github.com/epilys/rlr arch = any diff --git a/PKGBUILD b/PKGBUILD index c2cbef0..b1e21c9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Yigit Sever pkgname=rlr-git -pkgver=r29.26ca7b5 +pkgver=r30.bff17e8 pkgrel=1 pkgdesc="interactive pixel screen ruler and protractor" arch=('any') @@ -36,8 +36,10 @@ package() { 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" - # png icon - install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname%-git}.png" - # svg icon - install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.png" + + # 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}.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}.svg" + } -- cgit v1.2.3-70-g09d2 From cf2875ebffed25d451490ea0d50eed7c0f9c5c25 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 7 Oct 2022 18:34:06 +0300 Subject: symbolic icons --- .SRCINFO | 2 +- PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8cb9638..0ad3a3f 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = rlr-git pkgdesc = interactive pixel screen ruler and protractor pkgver = r30.bff17e8 - pkgrel = 1 + pkgrel = 2 url = https://github.com/epilys/rlr arch = any license = GPL diff --git a/PKGBUILD b/PKGBUILD index b1e21c9..6927098 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=rlr-git pkgver=r30.bff17e8 -pkgrel=1 +pkgrel=2 pkgdesc="interactive pixel screen ruler and protractor" arch=('any') url="https://github.com/epilys/rlr" @@ -40,6 +40,6 @@ package() { # 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}.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}.svg" + install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg" } -- cgit v1.2.3-70-g09d2 From 5f1e988ae2df5972646ac5eafb3cb6b9654eeebf Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 8 Oct 2022 17:19:59 +0300 Subject: Fix icon name --- .SRCINFO | 4 ++-- PKGBUILD | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 0ad3a3f..5d8ee9e 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = rlr-git pkgdesc = interactive pixel screen ruler and protractor - pkgver = r30.bff17e8 - pkgrel = 2 + pkgver = r31.463c617 + pkgrel = 1 url = https://github.com/epilys/rlr arch = any license = GPL diff --git a/PKGBUILD b/PKGBUILD index 6927098..4ec3d19 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Yigit Sever pkgname=rlr-git -pkgver=r30.bff17e8 -pkgrel=2 +pkgver=r31.463c617 +pkgrel=1 pkgdesc="interactive pixel screen ruler and protractor" arch=('any') url="https://github.com/epilys/rlr" @@ -40,6 +40,6 @@ package() { # 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" + install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg" } -- cgit v1.2.3-70-g09d2