blob: 6934c8f48b3150e4a3c85248af1588731feceddc (
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
|
# Maintainer: Cyan903 <cyanp0515 at gmail dot com>
pkgname="xswm-git"
pkgver=r159.d53f38b
pkgrel=1
pkgdesc="Minimal X-window-manager with only one task. Open every window maximized."
arch=("x86_64")
url="https://github.com/astier/xswm"
license=("MIT")
depends=("libx11")
makedepends=("git" "make")
provides=("xswm")
conflicts=("xswm")
source=("$pkgname::git+$url.git")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/${pkgname%-VCS}" || exit 1
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-VCS}" || exit 1
make xswm
}
package() {
cd "$srcdir/${pkgname%-VCS}" || exit 1
install -Dm755 "./xswm" "$pkgdir/usr/bin/xswm"
install -Dm644 "./README.md" "$pkgdir/usr/share/doc/$pkgname/README"
install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "$srcdir/.." || exit 1
install -Dm644 "./xswm.desktop" "$pkgdir/usr/share/xsessions/xswm.desktop"
}
|