summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69cb7f4bdb2e86f474ec3fc12b9d66c3920ab43f (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
# Maintainer: grimi
pkgname=libzakalwe-git
pkgver=r15.976e1a8
pkgrel=1
pkgdesc="A shared tools library."
arch=("x86_64")
url="https://gitlab.com/hors/libzakalwe"
license=("custom")
makedepends=("git" "sparse")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://gitlab.com/hors/libzakalwe.git")
md5sums=("SKIP")


pkgver() {
   cd "${pkgname%-git}"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${pkgname%-git}
  ./configure
  sed -i "s|PREFIX = /usr/local|PREFIX = ${pkgdir}/usr|" Makefile
  make
}

package() {
  cd ${pkgname%-git}
  install -d "${pkgdir}/usr/lib"
  make install
  install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname%-git}/COPYING
}