Added PKGBUILD
This commit is contained in:
parent
fad994c9d1
commit
a77ae1466d
|
@ -0,0 +1,7 @@
|
||||||
|
*.pkg.tar
|
||||||
|
*.pkg.tar.*
|
||||||
|
*.zst
|
||||||
|
*.zst.*
|
||||||
|
pkg/
|
||||||
|
src/
|
||||||
|
.idea/
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
|
||||||
|
|
||||||
|
_gitname="$(basename $(pwd))"
|
||||||
|
pkgname=("melawy-$_gitname")
|
||||||
|
pkgver=r2.fad994c
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="$(head -n 2 README.md | tail -n 1)"
|
||||||
|
url="https://github.com/Melawy/$_gitname"
|
||||||
|
arch=("any")
|
||||||
|
license=("AGPL3")
|
||||||
|
depends=("sddm plasma-desktop")
|
||||||
|
optdepends=()
|
||||||
|
makedepends=("git")
|
||||||
|
backup=()
|
||||||
|
provides=("${pkgname}")
|
||||||
|
conflicts=("${pkgname}")
|
||||||
|
source=("git+$url.git")
|
||||||
|
sha256sums=("SKIP")
|
||||||
|
|
||||||
|
THEME_NAME="Melawy-Lera-Sugar"
|
||||||
|
THEME_PATH="/usr/share/sddm/themes"
|
||||||
|
|
||||||
|
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/"
|
||||||
|
}
|
Loading…
Reference in New Issue