From c3082b9c57dcae63b13308dfd54d50e6632e24ef Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sat, 4 Nov 2023 20:30:11 +0900 Subject: [PATCH] fix (replace git protocol from git to https) --- .SRCINFO | 9 +++------ PKGBUILD | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index a1ddb83..77cd539 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,15 @@ pkgbase = makefontpkg pkgdesc = Tool for creating packages from TrueType and OpenType fonts - pkgver = 20200526 + pkgver = r28.3fed100 pkgrel = 1 url = http://github.com/misterdanb/makefontpkg arch = x86_64 arch = i686 - license = Beerware + license = GPL3 makedepends = git depends = python3 depends = pacman-contrib - options = !strip - options = !emptydirs - source = makefontpkg::git://github.com/misterdanb/makefontpkg.git + source = makefontpkg::git+https://github.com/misterdanb/makefontpkg.git md5sums = SKIP pkgname = makefontpkg - diff --git a/PKGBUILD b/PKGBUILD index a2b5e47..03a32b8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,18 +1,24 @@ # Maintainer: danb pkgname=makefontpkg -pkgver=20200526 +_pkgname="${pkgname}" +pkgver=r28.3fed100 pkgrel=1 pkgdesc="Tool for creating packages from TrueType and OpenType fonts" arch=(x86_64 i686) url='http://github.com/misterdanb/makefontpkg' -license=(Beerware) +license=(GPL3) depends=(python3 pacman-contrib) makedepends=(git) -options=('!strip' '!emptydirs') -source=('makefontpkg::git://github.com/misterdanb/makefontpkg.git') +# options=('!strip' '!emptydirs') +source=("${_pkgname}::git+https://github.com/misterdanb/makefontpkg.git") md5sums=('SKIP') -package() { - install -Dm755 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" +pkgver() { + cd "${_pkgname}" || exit 1 + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -Dm755 "${_pkgname}/$pkgname" "$pkgdir/usr/bin/$pkgname" }