aboutsummaryrefslogtreecommitdiff
path: root/sys-build/gmake/build.lua
blob: 792022d668ff96ac63964857a260ac8b7caf1311 (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
local package = {}

local lfs = require("lfs")

package.name = "gmake"
package.version = "4.4.1"
package.description = "the gnu implementation of make"
package.arch = { "x86_64" }
package.license = { "GPLv3" }

package.deps = {
	build = {
		{ provides = "cc" },
		{ provides = "make" },
	},
}

package.sources = {
	{
		path = "https://ftp.nluug.nl/pub/gnu/make/make-4.4.1.tar.gz",
		hash = "09a4ad8060259e36854b525ab610fd317a86f4926e44e3ab8adba75dccc8d4b445df9dd25ccfb4c25a54bc0e98238a9127e36401d74cbc3503a329eadcdf4995",
		out = "source.tar.gz",
	},
}

package.build = function()
	print(lfs.currentdir())

	pow.extract("source.tar.gz", "source")

	lfs.chdir("source/make-4.4.1")

	os.execute("./configure")

	os.execute("make")
end

return package