# Maintainer: paperbenni <paperbenni@gmail.com>
_pkgname=instantcursors
pkgname=$_pkgname
pkgver=202007241120
pkgrel=1
pkgdesc="Cursors for instantOS"
url="https://github.com/paperbenni/cursors"
arch=('any')
license=('MIT')
depends=('sh')
makedepends=('git' 'curl')
provides=(instantcursors)
conflicts=(instantcursors)
source=("$_pkgname::git+https://github.com/paperbenni/cursors.git")

sha256sums=('SKIP')

pkgver() {
    cd $_pkgname
    echo "$(date '+%Y%m%d%H%M')"
}

package() {
    cd $_pkgname
    mkdir -p ${pkgdir}/usr/share/icons
    rm README.md
    rm install.sh
    rm -rf .git
    mv ./* ${pkgdir}/usr/share/icons
    curl -s https://raw.githubusercontent.com/instantOS/instantOS/refs/heads/main/LICENSE >LICENSE
    install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
