diff --git a/Makefile b/Makefile index fee07ad..f5bd12b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ clean: install: gcc fetchy.c -o fetchy - mv fetchy /usr/bin/ + mv -f fetchy /usr/bin/ uninstall: rm /usr/bin/fetchy diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0e721c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Јован Ђокић-Шумарац +pkgname=fetchy-git +pkgver=1.0.r. +pkgrel=1 +epoch= +pkgdesc="Cli system info tool written in C. " +arch=(x86_64) +url="https://gitlab.com/vojjvoda/fetchy.git" +license=('MIT') +groups=() +depends=() +makedepends=(make) +checkdepends=() +optdepends=() +provides=(fetchy) +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+$url") +noextract=() +md5sums=('SKIP') +validpgpkeys=() + +pkgver() { + cd "${_pkgname}" + printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + + +package() { + cd fetchy + make +} + + +package() { + cd fetchy + mkdir -p ${pkgdir}/opt/${pkgname} + cp -rf * ${pkgdir}/opt/${pkgname} + make PREFIX=/usr DESTDIR="${pkgdir}" install + +} + +