aboutsummaryrefslogtreecommitdiffstats
path: root/community/wslu/APKBUILD
blob: c696801bf70caa759e5207ed1d5eed8191ac1c94 (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
# Maintainer: Jinming Wu, Patrick <me@patrickwu.space>
# Contributor: Jinming Wu, Patrick <me@patrickwu.space>
pkgname=wslu
pkgver=3.0.1
pkgrel=0
pkgdesc="A collection of utilities for Windows 10 Linux Subsystems"
url="https://wslutiliti.es/wslu"
arch="noarch"
license="GPL-3.0-or-later"
depends="bc bash-completion imagemagick"
makedepends="gzip"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wslutilities/wslu/archive/v$pkgver.tar.gz"
options="!check" #tests can be only run on a distro running on WSL(Windows Subsystems for Linux) environment, hence disabled

build() {
	sed -i s/VERSIONPLACEHOLDER/"$(cat ./VERSION)"/g ./src/wslu-header
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="8a7820c001d378af7cca6ea40b5194079a6ee5e4aca27e5899d4fcbc2944200efc095cce5996831248388ea0a4a8799a7965ec56632f130351bceacff27b9dd1  wslu-3.0.1.tar.gz"