From 0ec08db8f86d8cf729fdddf797f6898b26c0c699 Mon Sep 17 00:00:00 2001 From: javalsai Date: Thu, 29 Aug 2024 11:09:25 +0200 Subject: [PATCH] fix: lidm package (tag tarball now) & config permissions --- assets/pkg/aur/lidm-bin/.SRCINFO | 2 +- assets/pkg/aur/lidm-bin/PKGBUILD | 4 ++-- assets/pkg/aur/lidm-git/.SRCINFO | 2 +- assets/pkg/aur/lidm-git/PKGBUILD | 4 ++-- assets/pkg/aur/lidm/.SRCINFO | 4 ++-- assets/pkg/aur/lidm/PKGBUILD | 13 ++++++++----- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/assets/pkg/aur/lidm-bin/.SRCINFO b/assets/pkg/aur/lidm-bin/.SRCINFO index 2cd957c..0839322 100644 --- a/assets/pkg/aur/lidm-bin/.SRCINFO +++ b/assets/pkg/aur/lidm-bin/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = lidm-bin pkgdesc = A fully colorful cutomizable TUI display manager made in C. (release binary) pkgver = 0.0.1 - pkgrel = 4 + pkgrel = 5 url = https://github.com/javalsai/lidm arch = x86_64 license = GPL diff --git a/assets/pkg/aur/lidm-bin/PKGBUILD b/assets/pkg/aur/lidm-bin/PKGBUILD index 6a020ce..dfa563c 100644 --- a/assets/pkg/aur/lidm-bin/PKGBUILD +++ b/assets/pkg/aur/lidm-bin/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: javalsai pkgname=lidm-bin pkgver=0.0.1 -pkgrel=4 +pkgrel=5 depends=('pam') pkgdesc="A fully colorful cutomizable TUI display manager made in C. (release binary)" arch=('x86_64') @@ -20,5 +20,5 @@ sha256sums=( package() { install -Dm755 lidm "${pkgdir}/usr/bin/lidm" - install -Dm755 default-theme.ini "${pkgdir}/etc/lidm.ini" + install -Dm644 default-theme.ini "${pkgdir}/etc/lidm.ini" } diff --git a/assets/pkg/aur/lidm-git/.SRCINFO b/assets/pkg/aur/lidm-git/.SRCINFO index 859c824..a03912f 100644 --- a/assets/pkg/aur/lidm-git/.SRCINFO +++ b/assets/pkg/aur/lidm-git/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = lidm-git pkgdesc = A fully colorful cutomizable TUI display manager made in C. (last git commit) pkgver = 0.0.1.r0.gd6b165b - pkgrel = 6 + pkgrel = 7 url = https://github.com/javalsai/lidm arch = any license = GPL diff --git a/assets/pkg/aur/lidm-git/PKGBUILD b/assets/pkg/aur/lidm-git/PKGBUILD index 7a8639c..a3929df 100644 --- a/assets/pkg/aur/lidm-git/PKGBUILD +++ b/assets/pkg/aur/lidm-git/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: javalsai pkgname=lidm-git pkgver=0.0.1.r0.gd6b165b -pkgrel=6 +pkgrel=7 depends=('pam') makedepends=('git' 'make' 'gcc') pkgdesc="A fully colorful cutomizable TUI display manager made in C. (last git commit)" @@ -27,5 +27,5 @@ build() { package() { cd "lidm" install -Dm755 lidm "${pkgdir}/usr/bin/lidm" - install -Dm755 themes/default.ini "${pkgdir}/etc/lidm.ini" + install -Dm644 themes/default.ini "${pkgdir}/etc/lidm.ini" } diff --git a/assets/pkg/aur/lidm/.SRCINFO b/assets/pkg/aur/lidm/.SRCINFO index dad726d..2ba450e 100644 --- a/assets/pkg/aur/lidm/.SRCINFO +++ b/assets/pkg/aur/lidm/.SRCINFO @@ -9,7 +9,7 @@ pkgbase = lidm makedepends = make makedepends = gcc depends = pam - source = lidm::git+https://github.com/javalsai/lidm - sha256sums = SKIP + source = https://github.com/javalsai/lidm/archive/refs/tags/0.0.1.tar.gz + sha256sums = eb67cbb9313734c547042799a2fcb3ed6edcfd67ebcd03c1fc78050d00e60d2c pkgname = lidm diff --git a/assets/pkg/aur/lidm/PKGBUILD b/assets/pkg/aur/lidm/PKGBUILD index 1e0446f..4748e86 100644 --- a/assets/pkg/aur/lidm/PKGBUILD +++ b/assets/pkg/aur/lidm/PKGBUILD @@ -8,16 +8,19 @@ pkgdesc="A fully colorful cutomizable TUI display manager made in C. (build late arch=('any') url="https://github.com/javalsai/lidm" license=('GPL') -source=("lidm::git+https://github.com/javalsai/lidm") -sha256sums=('SKIP') +source=("tarball.tar.gz::https://github.com/javalsai/lidm/archive/refs/tags/$pkgver.tar.gz") +sha256sums=('eb67cbb9313734c547042799a2fcb3ed6edcfd67ebcd03c1fc78050d00e60d2c') build() { - cd "$pkgname" + tar -xzf "tarball.tar.gz" + cd "lidm-$pkgver" + make CFLAGS="-O3" } package() { - cd "$pkgname" + cd "lidm-$pkgver" + install -Dm755 lidm "${pkgdir}/usr/bin/lidm" - install -Dm755 themes/default.ini "${pkgdir}/etc/lidm.ini" + install -Dm644 themes/default.ini "${pkgdir}/etc/lidm.ini" }