blob: 9ed9efe08be54654c571e1283a9a96edcfaa670d (
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
|
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=archy-slstatus-git
_pkgname=archy-slstatus
pkgver=1.0.0.r1.g55b9d57
pkgrel=3
pkgdesc="A suckless status monitor for dwm"
url="https://github.com/archy-linux/$_pkgname"
arch=('i686' 'x86_64')
license=('MIT')
options=()
depends=('libx11')
makedepends=('git' 'make')
install=
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver(){
cd $_pkgname || exit 1
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd $_pkgname || exit 1
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd $_pkgname || exit 1
# shellcheck disable=SC2154
make PREFIX=/usr DESTDIR="$pkgdir" install
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README"
}
|