summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c10d42b148ba89d9b42726b8023dab0438205167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pkgname=ayaanfetch
pkgver=1.0.4
pkgrel=1
pkgdesc="AYAANFETCH by AYAAN511 – The Only Fetch Tool You’ll Ever Need (Wine, always grabs latest .zip release)"
arch=('any')
url="https://github.com/ayaan511/ayaanfetch"
license=('MIT')
depends=('wine' 'unzip')
source=(
  "ayaanfetch-latest.zip::https://github.com/ayaan511/ayaanfetch/releases/latest/download/ayaanfetch.zip"
  'install.sh'
)
md5sums=('SKIP' 'SKIP')

prepare() {
    unzip -o "$srcdir/ayaanfetch-latest.zip" -d "$srcdir"
}

package() {
    # Make main directory
    install -d "$pkgdir/usr/bin/unstable/ayaanfetch"
    # Copy main EXE
    install -Dm755 "$srcdir/AyaanFetch.exe" "$pkgdir/usr/bin/unstable/ayaanfetch/AyaanFetch.exe"
    # Copy the ENTIRE OpenHardwareMonitor folder with all files/subfolders
    cp -r "$srcdir/OpenHardwareMonitor" "$pkgdir/usr/bin/unstable/ayaanfetch/"
    # Install the setup script as ayaanfetch-setup
    install -Dm755 "$srcdir/install.sh" "$pkgdir/usr/bin/ayaanfetch-setup"
}