summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abad202ffb24ed027debc8d89fd1425c53964818 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=afetch-git
_pkgname=afetch
pkgver=1
pkgrel=1
epoch=
pkgdesc="Fast and simple system info written in C, that can be configured at compile time by editing the config.h file"
arch=("any")
url="https://github.com/13-CF/afetch"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=(afetch)
conflicts=(afetch)
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/13-CF/afetch"
    "Makefile.patch")
noextract=()
md5sums=("SKIP" "SKIP")

prepare() {
    patch "$_pkgname/Makefile" -i Makefile.patch
}

build() {
	cd "$_pkgname"
	make all
}

package() {
	cd "$_pkgname"
	make DESTDIR="$pkgdir/" PREFIX="/usr/" install
}