summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4feb02b4d853eefd471cf188b933e11e2308efd6 (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
# Maintainer: Francesco Palumbo <phranz@subfc.net>

pkgname=lidact-git
_pkgname=lidact
pkgver=0.0.1
pkgrel=1
pkgdesc="A tool to execute programs on lid opening/closing."
arch=('x86_64')
url="https://codeberg.org/phranz/lidact"
license=('GPL3')
depends=()
makedepends=('git')
provides=(lidact)
conflicts=(lidact lidact-git)

source=("$_pkgname"::'git+https://codeberg.org/phranz/lidact')
sha512sums=('SKIP')

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

build() {
    cd "$srcdir/${_pkgname}/"
	./configure --prefix=/usr
	make
}

package() {
    cd "$srcdir/${_pkgname}/"
	make DESTDIR="$pkgdir/" install
}