diff --git a/assets/pkg/aur/lidm-bin/PKGBUILD b/assets/pkg/aur/lidm-bin/PKGBUILD index 0e569a7..47ab7db 100644 --- a/assets/pkg/aur/lidm-bin/PKGBUILD +++ b/assets/pkg/aur/lidm-bin/PKGBUILD @@ -1,21 +1,20 @@ -# shellcheck disable=SC2034,SC2148,SC2128,SC2154,SC2164 +# shellcheck disable=SC2034,SC2154,SC2164 # Maintainer: javalsai pkgname=lidm-bin pkgver=1.2.3 pkgrel=1 -depends=('pam') +depends=('libpam.so=0') pkgdesc="A fully colorful customizable TUI display manager made in C. (release binary)" arch=('x86_64') url="https://github.com/javalsai/lidm" license=('GPL') provides=('lidm') conflicts=('lidm') -_ver="${pkgver}-${pkgrel}" source=( - "lidm-${_ver}::$url/releases/download/v$pkgver/lidm-amd64" - "lidm-default-theme-${_ver}.ini::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/themes/default.ini" - "lidm-${_ver}.1::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm.1" - "lidm-config-${_ver}.5::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm-config.5" + "lidm-${pkgver}::$url/releases/download/v$pkgver/lidm-amd64" + "lidm-default-theme-${pkgver}.ini::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/themes/default.ini" + "lidm-${pkgver}.1::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm.1" + "lidm-config-${pkgver}.5::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm-config.5" ) sha256sums=('a533b5aee3ffe04268f8d3ff8d7eb87f09d31fbe25e1b8b1ed29c42ef465bd4b' 'ffaa5fe2cf5011bf53c90f81bfec8585158d35f72c0666db0bd4d3866ae041ca' @@ -23,8 +22,10 @@ sha256sums=('a533b5aee3ffe04268f8d3ff8d7eb87f09d31fbe25e1b8b1ed29c42ef465bd4b' '0aa5755bdcc60ea80cd9ee0f89233ffaf22c6cee9db9da277274a62c6ed477d9') package() { - install -Dm755 "lidm-${_ver}" "${pkgdir}/usr/bin/lidm" - install -Dm644 "lidm-default-theme-${_ver}.ini" "${pkgdir}/etc/lidm.ini" - install -Dm644 "lidm-${_ver}.1" "${pkgdir}/usr/share/man/man1/lidm.1" - install -Dm644 "lidm-config-${_ver}.5" "${pkgdir}/usr/share/man/man5/lidm-config.5" + cd "$srcdir" + + install -Dm755 "lidm-${pkgver}" "${pkgdir}/usr/bin/lidm" + install -Dm644 "lidm-default-theme-${pkgver}.ini" "${pkgdir}/etc/lidm.ini" + install -Dm644 "lidm-${pkgver}.1" "${pkgdir}/usr/share/man/man1/lidm.1" + install -Dm644 "lidm-config-${pkgver}.5" "${pkgdir}/usr/share/man/man5/lidm-config.5" } diff --git a/assets/pkg/aur/lidm-git/PKGBUILD b/assets/pkg/aur/lidm-git/PKGBUILD index 0d34ff6..df466bc 100644 --- a/assets/pkg/aur/lidm-git/PKGBUILD +++ b/assets/pkg/aur/lidm-git/PKGBUILD @@ -1,4 +1,4 @@ -# shellcheck disable=SC2034,SC2148,SC2128,SC2154,SC2164 +# shellcheck disable=SC2034,SC2154,SC2164 # Maintainer: javalsai pkgname=lidm-git pkgver=1.2.3.r3.g363deea @@ -15,17 +15,17 @@ source=("lidm::git+https://github.com/javalsai/lidm") sha256sums=('SKIP') pkgver() { - cd "lidm" + cd "$srcdir/lidm" git describe --long --abbrev=7 --tags | \ sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "lidm" + cd "$srcdir/lidm" make } package() { - cd "lidm" - make install DESTDIR="${pkgdir}" + cd "$srcdir/lidm" + make DESTDIR="${pkgdir}" install } diff --git a/assets/pkg/aur/lidm/PKGBUILD b/assets/pkg/aur/lidm/PKGBUILD index 0990f2c..430a0d3 100644 --- a/assets/pkg/aur/lidm/PKGBUILD +++ b/assets/pkg/aur/lidm/PKGBUILD @@ -1,26 +1,21 @@ -# shellcheck disable=SC2034,SC2148,SC2128,SC2154,SC2164 +# shellcheck disable=SC2034,SC2154,SC2164 # Maintainer: javalsai pkgname=lidm pkgver=1.2.3 pkgrel=2 depends=('pam') -makedepends=('git') +makedepends=() pkgdesc="A fully colorful customizable TUI display manager made in C. (build latest tag)" arch=('any') url="https://github.com/javalsai/lidm" license=('GPL') -_ver="${pkgver}-${pkgrel}" -source=("${pkgname}-${_ver}.tar.gz::https://github.com/javalsai/lidm/archive/refs/tags/v$pkgver.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/javalsai/lidm/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('1ce414b510c5bbc3e32ea882f915b4d3958cb82eb1fbb5cf33e62f69c844bf93') build() { - tar -xzf "${pkgname}-${_ver}.tar.gz" - cd "lidm-$pkgver" - - make + make -C "$srcdir/lidm-$pkgver" } package() { - cd "lidm-$pkgver" - make install DESTDIR="${pkgdir}" + make -C "$srcdir/lidm-$pkgver" DESTDIR="$pkgdir" install } diff --git a/assets/pkg/aur/makepkg-clean.sh b/assets/pkg/aur/makepkg-clean.sh new file mode 100755 index 0000000..2015f81 --- /dev/null +++ b/assets/pkg/aur/makepkg-clean.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +set -e + +MYSELF=$(realpath "$0") +MYDIR=$(dirname "$MYSELF") + +cd "$MYDIR" +typeset -a pkgs=(lidm{,-git,-bin}) + +for pkg in "${pkgs[@]}"; do + printf "\x1b[mEntering '%s'\x1b[0m\n" "$pkg" + cd "$pkg" + # shellcheck disable=SC1091 + source PKGBUILD + # shellcheck disable=SC2154 + for f in "${source[@]}"; do + echo "$f" + awk -F:: '{print $1}' <<<"$f" | xargs rm -rf + done + cd .. + echo +done diff --git a/assets/pkg/aur/test-makepkg.sh b/assets/pkg/aur/test-makepkg.sh index e9a3e40..7eb0abe 100755 --- a/assets/pkg/aur/test-makepkg.sh +++ b/assets/pkg/aur/test-makepkg.sh @@ -4,9 +4,19 @@ set -e MYSELF=$(realpath "$0") MYDIR=$(dirname "$MYSELF") -for pkg in "$MYDIR"/*/; do - printf "\x1b[1mEntering '%s'\x1b[0m\n" "$pkg" +cd "$MYDIR" +typeset -a pkgs=(lidm{,-git,-bin}) + +for pkg in "${pkgs[@]}"; do + printf "\x1b[mEntering '%s'\x1b[0m\n" "$pkg" cd "$pkg" - makepkg -f . + makepkg -Cf + cd .. echo done + +if [[ -n "${PRINT_TREE:-}" ]]; then + for pkg in "${pkgs[@]}"; do + eza --tree "$pkg/pkg/"* + done +fi