diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf46a7c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.pkg.tar +*.pkg.tar.* +*.zst +*.zst.* +pkg/ +src/ +.idea/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ee1f048 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("melawy-$_gitname") +pkgver=r4.823ce12 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +url="https://github.com/Melawy/$_gitname" +arch=("any") +license=("AGPL3") +depends=("refind") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") + +THEME_NAME="melawy-lera-sugar" +THEME_PATH="/usr/share/refind/themes" + +install=$pkgname.install + +pkgver() { + cd "$srcdir/$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -d "$pkgdir$THEME_PATH" + cp -vrf --no-dereference --preserve=links "$srcdir/$_gitname/$THEME_NAME" "$pkgdir$THEME_PATH/" +}