summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7a3d6cb4ac555ad5a8e194e4a719b9cebc4791b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Antoni Kepinski <hello[at]akepinski[dot]me>
pkgname=archfetch
pkgver=1.0.5
pkgrel=2
pkgdesc="Neofetch, but simplified. For Arch Linux."
url="https://github.com/xxczaki/archfetch/"
arch=('i686' 'x86_64')
license=('MIT')
makedepens=('git')
_gitroot="git://github.com/xxczaki/archfetch.git"
_gitname="archfetch"

package() {	
	cd "${PKGMK_SOURCE_DIR}"

	if cd "${pkgname}"; then
		git fetch -q
		git reset --hard origin/master
	else
		git clone ${_gitroot} ${_gitname}
		cd "${pkgname}"
	fi

	sudo install -Dm755 archfetch "${PKG}/usr/bin/archfetch"
}