Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgbase = coolerdash
pkgdesc = Monitor telemetry data on an AIO liquid cooler with an integrated LCD display
pkgver = 2.2.2
pkgver = 2.2.4
pkgrel = 1
url = https://github.com/damachine/coolerdash
install = coolerdash.install
Expand Down
36 changes: 36 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Automatic line ending normalization
* text=auto

# Shell scripts always with LF (Unix line endings)
*.sh text eol=lf
*.bash text eol=lf

# Markdown files
*.md text eol=lf linguist-documentation

# Configuration files
*.yml text eol=lf
*.yaml text eol=lf
*.cfg text eol=lf
*.conf text eol=lf

# Git configuration
.gitignore text eol=lf
.gitattributes text eol=lf

# Documentation
docs/* linguist-documentation
*.md linguist-documentation
README.md linguist-documentation
LICENSE text eol=lf

# GitHub Workflows/Actions
.github/workflows/* linguist-generated
.github/FUNDING.yml text eol=lf

# Export behavior (for git archive)
.gitattributes export-ignore
.gitignore export-ignore
.github export-ignore
docs export-ignore
*.md export-ignore
18 changes: 9 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
!VERSION
!.md
!.SRCINFO
!coolerdash.install
!PKGBUILD
!Makefile
!.github
!.gitignore
!.gitattributes
coolerdash-bin/
*~
.*
Expand Down Expand Up @@ -47,3 +38,12 @@ packaging/debian/coolerdash/
packaging/debian/files
packaging/debian/*.substvars
packaging/debian/*.log
!VERSION
!.md
!.SRCINFO
!coolerdash.install
!PKGBUILD
!Makefile
!.github
!.gitignore
!.gitattributes
115 changes: 54 additions & 61 deletions Makefile

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created by: damachin3 (damachine3 at proton dot me)
# Maintainer: damachin3 (damachine3 at proton dot me)
# Website: https://github.com/damachine/coolerdash

# This PKGBUILD is for building the coolerdash package from local source.
Expand Down Expand Up @@ -29,19 +29,19 @@ build() {
# Fetch latest tags if in git repo
if git rev-parse --git-dir >/dev/null 2>&1; then
echo "Fetching latest tags..."
git fetch --tags 2>/dev/null || true
git fetch --tags
fi

# Remove all previous tarball builds
rm -rf coolerdash-*.pkg.* || true
rm -rf coolerdash-*.pkg.*

# Clean any previous builds if a Makefile exists
if [[ -f Makefile || -f GNUmakefile ]]; then
make clean || true
make clean
fi

# Build with Arch Linux specific optimizations and C99 compliance
make || return 1
# Build the project
make

# Copy files to srcdir for packaging (fakeroot cannot access startdir)
mkdir -p "${srcdir}/bin" "${srcdir}/images" "${srcdir}/man" "${srcdir}/etc/coolercontrol/plugins/coolerdash/ui" "${srcdir}/etc/applications" "${srcdir}/etc/icons" "${srcdir}/etc/udev/rules.d"
Expand All @@ -67,9 +67,9 @@ check() {

# Verify that the binary was created successfully
if [[ -f bin/coolerdash ]]; then
echo "Build successful - binary created"
msg "Build successful - binary created"
else
echo "ERROR: Binary not found"
error "Build failed - binary not found"
return 1
fi
}
Expand All @@ -90,6 +90,7 @@ package() {
install -Dm644 "${srcdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml"

sed -i "s/{{VERSION}}/${pkgver}/g" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml"
sed -i "s/{{VERSION}}/${pkgver}/g" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/index.html"

install -Dm644 "${srcdir}/man/coolerdash.1" "${pkgdir}/usr/share/man/man1/coolerdash.1"
install -Dm644 "${srcdir}/etc/applications/coolerdash.desktop" "${pkgdir}/usr/share/applications/coolerdash.desktop"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.2.4
21 changes: 11 additions & 10 deletions aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Created by: damachin3 (damachine3 at proton dot me)
# Maintainer: damachin3 (damachine3 at proton dot me)
# Website: https://github.com/damachine/coolerdash

pkgname=coolerdash-git
Expand All @@ -22,35 +21,36 @@ sha256sums=('SKIP') # SKIP for git repo source builds

pkgver() {
cd "${srcdir}/coolerdash"
# Fetch latest tags in git repo
git fetch --tags
git describe --tags --long --match "v*" | sed -E 's/^v//; s/-([0-9]+)-g/\.r\1.g/; s/-/./g'
}

build() {
# Build inside the checked-out repository
cd "${srcdir}/coolerdash" || return 1
cd "${srcdir}/coolerdash"

# Remove all previous tarball builds
rm -rf coolerdash-*.pkg.* || true
rm -rf coolerdash-*.pkg.*

# Clean any previous builds if a Makefile exists
if [[ -f Makefile || -f GNUmakefile ]]; then
make clean || true
make clean
fi

# Build
make || return 1
# Build the project
make
}

check() {
# Check in the checked-out repository
cd "${srcdir}/coolerdash" || return 1
cd "${srcdir}/coolerdash"

# Verify that the binary was created successfully
if [[ -f bin/coolerdash ]]; then
echo "Build successful - binary created"
msg "Build successful - binary created"
else
echo "ERROR: Binary not found"
error "Build failed - binary not found"
return 1
fi
}
Expand All @@ -71,6 +71,7 @@ package() {
install -m644 "${srcdir}/coolerdash/etc/coolercontrol/plugins/coolerdash/manifest.toml" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml"

sed -i "s/{{VERSION}}/${pkgver}/g" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml"
sed -i "s/{{VERSION}}/${pkgver}/g" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/index.html"

install -Dm644 "${srcdir}/coolerdash/man/coolerdash.1" "${pkgdir}/usr/share/man/man1/coolerdash.1"
install -Dm644 "${srcdir}/coolerdash/etc/applications/coolerdash.desktop" "${pkgdir}/usr/share/applications/coolerdash.desktop"
Expand Down
Loading