summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 217d7424f53ce6ba64af99c0b7c65dad5c575d3e (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
37
38
39
40
# Maintainer: Stefan Wimmer <info@stefanwimmer128.xyz>

_pkgname=cross-install
pkgname=$_pkgname-git
pkgver=1.2.0.r7.gf9c1bad
pkgrel=1
pkgdesc='POSIX-complient cross-platform install command'
arch=('any')
url='https://gitlab.com/stefanwimmer128/cross-install'
license=('MPL2')
depends=('sh')
makedepends=('git' 'getoptions' 'moreutils')
checkdepends=('shellcheck')
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://gitlab.com/stefanwimmer128/cross-install.git")
sha256sums=('SKIP')

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

build() {
    cd "$_pkgname"

    make
}

check() {
    cd "$_pkgname"

    make check
}

package() {
    cd "$_pkgname"

    make DESTDIR="$pkgdir" PREFIX=/usr install
}