-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,7 @@ grub-customizer-git | |
gtkhash | ||
hakuneko-deb | ||
hamclock | ||
hamclock-big | ||
harmonoid-deb | ||
headset-deb | ||
helix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |