Commit a00d100c authored by Natanael Copa's avatar Natanael Copa

aports.lua: also store url in pkg struct

parent 7ac5bd33
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
local function split_apkbuild(line) local function split_apkbuild(line)
local r = {} local r = {}
local dir,pkgname, pkgver, pkgrel, arch, depends, makedepends, subpackages, source = string.match(line, "([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)") local dir,pkgname, pkgver, pkgrel, arch, depends, makedepends, subpackages, source, url = string.match(line, "([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)|([^|]*)")
r.dir = dir r.dir = dir
r.pkgname = pkgname r.pkgname = pkgname
r.pkgver = pkgver r.pkgver = pkgver
...@@ -58,6 +58,7 @@ local function split_apkbuild(line) ...@@ -58,6 +58,7 @@ local function split_apkbuild(line)
r.makedepends = split(makedepends) r.makedepends = split(makedepends)
r.subpackages = split_subpkgs(subpackages) r.subpackages = split_subpkgs(subpackages)
r.source = split(source) r.source = split(source)
r.url = url
return r return r
end end
...@@ -83,10 +84,11 @@ local function parse_apkbuilds(dirs) ...@@ -83,10 +84,11 @@ local function parse_apkbuilds(dirs)
makedepends= makedepends=
subpackages= subpackages=
source= source=
url=
dir="${i%/APKBUILD}" dir="${i%/APKBUILD}"
cd "$dir" cd "$dir"
. ./APKBUILD . ./APKBUILD
echo $dir\|$pkgname\|$pkgver\|$pkgrel\|$arch\|$depends\|$makedepends\|$subpackages\|$source echo $dir\|$pkgname\|$pkgver\|$pkgrel\|$arch\|$depends\|$makedepends\|$subpackages\|$source\|$url
done done
]]) ]])
return function() return function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment