aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opkg/APKBUILD
blob: 753b21db01455c3b5d5c2966c563e0c2773489f1 (plain) (blame)
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
# Maintainer: Ryan Barnett <ryanbarnett3@gmail.com>
pkgname=opkg
pkgver=0.4.4
pkgrel=0
pkgdesc="Lightweight package management system"
url="http://git.yoctoproject.org/cgit/cgit.cgi/opkg/"
arch="all"
license="GPL-2.0-or-later"
makedepends="curl-dev gpgme-dev libarchive-dev autoconf automake libtool pkgconf"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="http://downloads.yoctoproject.org/releases/opkg/opkg-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	# Tests cannot be run in parallel, must be sequential
	make -j 1 check
}

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

sha512sums="533605e3c193969162260bd196b028ab66b38433ed87a70fe1f73b973c6468f5cf274d0f6887a2e82d33ce1960becee219b1312183665247284c1a4742a5dc68  opkg-0.4.4.tar.gz"