summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 327bdaaaaef888a513c5f70b0c355a8020959b7b (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: Miroslav Koškár <https://mkoskar.com/>

_basename='libaosd-xinerama'

pkgname='libaosd-xinerama-git'
pkgver=0.2.7.r14.g1bf554b
pkgrel=1
pkgdesc='libaosd (Atheme OSD) with Xinerama support and aosd_cat enhancements'
url='https://github.com/mkoskar/libaosd-xinerama'
license=(MIT)
arch=(x86_64)
depends=(libxcomposite libxinerama pango)
provides=(libaosd)
conflicts=(libaosd)
makedepends=(git)

source=("git+https://github.com/mkoskar/$_basename.git")
sha256sums=(SKIP)

pkgver() {
    cd "$_basename"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$_basename"
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

package() {
    cd "$_basename"
    make DESTDIR="$pkgdir" install
    install -D -m644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}