Skip to content

Commit

Permalink
add: hamclock-big (#5912)
Browse files Browse the repository at this point in the history
  • Loading branch information
fang64 authored May 18, 2024
1 parent c561ccb commit 9fff8a9
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ grub-customizer-git
gtkhash
hakuneko-deb
hamclock
hamclock-big
harmonoid-deb
headset-deb
helix
Expand Down
19 changes: 19 additions & 0 deletions packages/hamclock-big/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgname = hamclock-big
pkgver = 4.00
pkgdesc = Clock and world map with extra features for amateur radio (1600x960 version)
url = https://clearskyinstitute.com/ham/HamClock
source = https://github.com/kj7rrv/hamclock/archive/refs/tags/v4.00.tar.gz
makedepends = gcc
makedepends = make
makedepends = pkg-config
makedepends = libxau6
makedepends = libx11-6
makedepends = libx11-dev
makedepends = libxcb1
breaks = hamclock
breaks = hamclock-bigger
breaks = hamclock-huge
replaces = hamclock-big
maintainer = Roy Williams <[email protected]>
repology = project: hamclock-big
sha256sums = 1def12cf34d3486edb1c4fb0ec7f1a27cc1bda01ca811b6c0fefc68c4c98ab20
42 changes: 42 additions & 0 deletions packages/hamclock-big/hamclock-big.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pkgname="hamclock-big"
pkgver="4.00"
source=("https://github.com/kj7rrv/hamclock/archive/refs/tags/v${pkgver}.tar.gz")
url='https://clearskyinstitute.com/ham/HamClock'
makedepends=("gcc" "make" "pkg-config" "libxau6" "libx11-6" "libx11-dev" "libxcb1")
breaks=("hamclock" "hamclock-bigger" "hamclock-huge")
replaces=("hamclock-big")
pkgdesc="Clock and world map with extra features for amateur radio (1600x960 version)"
sha256sums=("1def12cf34d3486edb1c4fb0ec7f1a27cc1bda01ca811b6c0fefc68c4c98ab20")
maintainer=("Roy Williams <[email protected]>")
repology=("project: ${pkgname}")

prepare() {
cd "hamclock-${pkgver}/ESPHamClock"
# Add -PAC to version for PACSTALL
sed -i 's/"/-PAC"/g' version.h
sed -i 's/\t-PAC"/\t"/g' version.h

# Do not check for/install updates
sed -i "s/tft.print (F(\"You're up to date\!\"));"'/tft.print(F("Updates disabled for PACSTALL")); tft.setCursor (tft.width()\/8, tft.height()\/3+40); tft.print(F("If this build is outdated by more than a few days,")); tft.setCursor (tft.width()\/8, tft.height()\/3+80); tft.print(F("please email [email protected].")); wdDelay(2000);/g' ESPHamClock.ino
sed -i 's/bool found_newer = false;/return false;bool found_newer;/g' OTAupdate.cpp
}

build() {
cd "hamclock-${pkgver}/ESPHamClock"
make -j"${NCPU}" hamclock-1600x960
}

package() {
cd "hamclock-${pkgver}/ESPHamClock"
mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications" "${pkgdir}/usr/share/icons" "${pkgdir}/usr/share/licenses/${gives}/"
cp hamclock-1600x960 "${pkgdir}/usr/bin/hamclock"
cp hamclock.png "${pkgdir}/usr/share/icons"
cp LICENSE "${pkgdir}/usr/share/licenses/${gives}"
echo '[Desktop Entry]
Name=HamClock
Exec=hamclock
Icon=/usr/share/icons/hamclock.png
Terminal=false
Type=Application
Categories=HamRadio' | tee "${pkgdir}/usr/share/applications/hamclock.desktop" > /dev/null
}
7 changes: 7 additions & 0 deletions packages/hamclock-big/hamclock.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=HamClock
Exec=hamclock
Icon=/usr/share/icons/hamclock.png
Terminal=false
Type=Application
Categories=HamRadio'

0 comments on commit 9fff8a9

Please sign in to comment.