aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ubase/APKBUILD
blob: 6709f80513ab83f997a06f22213c69899f72b784 (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Drew DeVault <sir@cmpwn.com>
_commit=3c88778c6c85d97fb63c41c05304519e0484b07c
pkgname=ubase
pkgver=20190312
pkgrel=0
pkgdesc="Suckless collection of unportable base"
url="https://core.suckless.org/ubase"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="git"
source="" # source is only distributed as a git repo
options="suid !check" # upstream provides no test suite
builddir="$srcdir/$pkgname"

prepare() {
	cd "$srcdir"
	git clone git://git.suckless.org/ubase
	cd ubase
	git checkout $_commit
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	chmod a+s passwd
	make DESTDIR="$pkgdir" PREFIX=/usr install
}