melawy-wallpapers-from-youtube/PKGBUILD

35 lines
776 B
Bash
Raw Permalink Normal View History

2023-11-18 18:30:37 +05:00
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
_gitname="$(basename $(pwd))"
pkgname=("$_gitname")
pkgver=1.1
pkgrel=1
pkgdesc="$(head -n 2 README.md | tail -n 1)"
url="https://git.melawy.ru/Design/$_gitname"
arch=("any")
license=("AGPL3")
depends=()
optdepends=()
makedepends=("git")
backup=()
provides=("${pkgname}")
conflicts=("${pkgname}")
# source=("git+$url.git")
source=("Melawy-YouTube.tar.xz")
sha256sums=("SKIP")
validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8')
# pkgver() {
# cd "$srcdir/$_gitname"
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# }
pkgver() {
printf "1.%s" "$(git rev-list --count HEAD)"
}
package() {
cp -vrf --no-dereference --preserve=links --no-preserve=mode "$srcdir/usr" "$pkgdir/"
}