blob: d7adfbc5d0064117162bc718dd8db1ba0a5e93cc (
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
|
# Maintainer: Ingo Meyer <IJ_M@gmx.de>
pkgname="sysinfo"
pkgver="0.1.4"
pkgrel="2"
pkgdesc="sysinfo shows system information like the hardware configuration and resource usage in a compact, clearly arranged and
visually pleasing style."
arch=("any")
url="https://github.com/IngoMeyer441/sysinfo"
license=("MIT")
depends=("bash" "gawk")
conflicts=("xfce4-sysinfo")
source=("https://github.com/IngoMeyer441/sysinfo/archive/v${pkgver}.tar.gz"
"version.sh_no_phony.patch")
sha256sums=("46eece940744a6222cf39c29ff01fd18b3b67170ba00e4143307d259126378c5"
"022e579806fc6090f066489ee40a38010f7c26d9f874554e7eb7d7f5236d257f")
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}" || return
patch -p1 -i "${srcdir}/version.sh_no_phony.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}" || return
sed \
-e "s/^\(SCRIPT_VERSION=\).*$/\1\"${pkgver}\"/" \
"src/version.template.sh" > "src/version.sh" && \
make build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}" || return
make DESTDIR="${pkgdir}" PREFIX=/usr install && \
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" && \
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|