diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 32 |
2 files changed, 29 insertions, 20 deletions
@@ -1,9 +1,12 @@ -pkgbase = pkgbase - pkgver = 8.3.1.13 +pkgbase = osfetch-sh-git + pkgdesc = osfetch-sh is a stupid system fetch program written in bash for linux. + pkgver = r17.ec5682d pkgrel = 1 - arch = x86_64 - depends = base - source = test.sh - sha512sums = SKIP + url = https://github.com/mzakyr12/osfetch-sh + arch = any + license = MIT + makedepends = git + source = git+https://github.com/mzakyr12/osfetch-sh + md5sums = SKIP -pkgname = pkgbase +pkgname = osfetch-sh-git @@ -1,18 +1,24 @@ -pkgbase='pkgbase' -pkgname='pkgbase' +# Maintainer: Muhammad Zaky Ramadhan <mzakyr42@gmail.com> -pkgver='8.3.1.13' -pkgrel='1' +pkgname=osfetch-sh-git +_pkgname=osfetch-sh +pkgver=r17.ec5682d +pkgrel=1 +pkgdesc="osfetch-sh is a stupid system fetch program written in bash for linux." +arch=('any') +url="https://github.com/mzakyr12/${_pkgname}" +license=('MIT') +makedepends=('git') +source=("git+https://github.com/mzakyr12/${_pkgname}") +md5sums=('SKIP') -arch=('x86_64') - -depends=('base') - -source=('test.sh') - -sha512sums=('SKIP') +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} package() { - cd "$srcdir" - install -Dm 755 test.sh "$pkgdir/opt/test.sh" + cd $_pkgname + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/osfetch-sh-git/LICENSE" + install -D -m755 osfetch "$pkgdir/usr/bin/$_pkgname" } |