Makepkg Push
This commit is contained in:
parent
76ca2b6fb5
commit
089d2131c8
2 changed files with 48 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ clean:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
gcc fetchy.c -o fetchy
|
gcc fetchy.c -o fetchy
|
||||||
mv fetchy /usr/bin/
|
mv -f fetchy /usr/bin/
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/bin/fetchy
|
rm /usr/bin/fetchy
|
||||||
|
|
47
PKGBUILD
Normal file
47
PKGBUILD
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
# Maintainer: Јован Ђокић-Шумарац <sumarac@protonmail.com>
|
||||||
|
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
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue