archpackaging

PKGBUILDs
git clone https://git.awy.one/archpackaging
Log | Files | Refs

PKGBUILD (945B) - View raw


 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
_pkgname=dwlb
pkgname=$_pkgname
pkgver=r95.5bdc70b
pkgrel=1
pkgdesc="A fast, feature-complete bar for mango"
url="https://git.awy.one/dwlb"
arch=('x86_64')
license=('GPL3')
# depends=('wayland' 'libxkbcommon' 'fcft')
makedepends=('git' 'pkg-config' 'wayland-protocols' 'fcft' 'pixman')
# if tray patch is used
# makedepends=('git' 'pkg-config' 'wayland-protocols' 'fcft' 'pixman' 'gtk4-layer-shell')
source=(git+https://git.awy.one/dwlb.git)
sha256sums=(SKIP)

provides=("$pkgname")
conflicts=("$pkgname")

pkgver() {
    cd $srcdir/$_pkgname
    git_ver=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
    echo "$git_ver"
}

build() {
    cd "$srcdir/$_pkgname"
    make PREFIX=/usr
}

package() {
    cd "$srcdir/$_pkgname"

    install -Dm755 dwlb "$pkgdir/usr/bin/dwlb"
    install -Dm644 dwlb.1 "$pkgdir/usr/share/man/man1/dwlb.1"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}