aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/libcap.az
blob: 6f6eb355ad953e74c36c79d9eb0080e905b251ed (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
41
42
43
44
package libcap {
	description = "a library for getting and setting POSIX.1e draft 15 capabilities";
	website = "https://sites.google.com/site/fullycapable";
	anitya = 1569;

	version# = "2.78";
	source = remoteTar {
		url = "https://git.kernel.org/pub/scm/libs/libcap/libcap.git/"+
			"snapshot/libcap-"+version+".tar.gz";
		checksum = "wFdUkBhFMD9InPnrBZyegWrlPSAg_9JiTBC-eSFyWWlmbzL2qjh2mKxr9Kx2a8ut";
		compress = gzip;
	};

	// uses source tree as scratch space
	enterSource = true;
	writable = true;
	chmod = true;

	env = [
		"prefix=/system",
		"lib=lib",
	];

	bin = [ "bash" ];
	exec = make {
		skipConfigure = true;
		inPlace = true;

		make = [
			"CC=cc",
			"all",
		];

		check = [
			"CC=cc",
			"test",
		];
	};

	inputs = [
		bash,
		diffutils,
	];
}