summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b38eb69567862bbf04e21d19b79113a0e5484ffe (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: Laurent Tréguier <laurent@treguier.org>

pkgname=lzfse-git
pkgver=r20.4591228
pkgrel=2
pkgdesc="The LZFSE compression library and command line tool"
arch=("x86_64")
url="https://github.com/lzfse/lzfse"
license=("BSD")
depends=()
makedepends=("git")
optdepends=()
provides=("lzfse")
conficts=("lzfse")
source=("git+https://github.com/lzfse/lzfse") 
sha1sums=("SKIP")
_pkgname=lzfse

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

build() {
    cd ${_pkgname}
    make
}

package() {
    install -Dm755 ${srcdir}/${_pkgname}/build/bin/lzfse ${pkgdir}/usr/bin/lzfse
    install -d ${pkgdir}/usr/{include,lib}
    install -Dm644 ${srcdir}/${_pkgname}/src/lzfse.h ${pkgdir}/usr/include/lzfse.h
    install -Dm644 ${srcdir}/${_pkgname}/build/bin/liblzfse.a ${pkgdir}/usr/lib/
    install -d ${pkgdir}/usr/share/licenses/lzfse
    install -Dm644 ${srcdir}/${_pkgname}/LICENSE ${pkgdir}/usr/share/licenses/lzfse/
}