Commit Graph

7 Commits (e0af78393861bc54a3a92ef736b47d842be8c562)

Author SHA1 Message Date
GreekStapler e0af783938 refactor: Add libarchive link Makefile test compilation. Created test units with xcursor-dmz as test package. 2023-01-25 23:19:33 +01:00
GreekStapler 1da345f8b3 refactor: Added SHA256 to package description file. 2023-01-25 23:10:53 +01:00
GreekStapler 3d69c8edeb refactor: Decided to not return char** in function that creates the package description after all, now returns char*.
The method I was trying started to irk me when I thought of creating a test unit for it. Also fixed some other issues I found in the package_to_description function (SHA256SUM section still missing).
2023-01-25 22:15:07 +01:00
GreekStapler 31fc4e2989 fix: Took a very long time finding a very annyoing bug because realloc is the devil. 2023-01-25 17:24:03 +01:00
GreekStapler 62d1081d38 refactor: Created function that will return the char ** (originally char *) that will be used to make the description file. Also removed free that was resulting in a crash. 2023-01-25 17:17:18 +01:00
GreekStapler d252c55fb0 refactor: Modified .PKGINFO parser not to rely on gotos and continues. Parser is now optimistic and assumes .PKGINFO file is valid.
After my changes to the macros, they still feel a bit hacky, but I'm content with them. I also changed the parser to assume the .PKGINFO files are always valid because they are automatically generated. The parser also assumes the same fields will always appear in the same fixed order. I made this change after checking how makepkg generated this file.
2023-01-25 16:22:22 +01:00
GreekStapler cc3cacc1f7 refactor: Add original .c package files by Jef. 2023-01-25 13:00:33 +01:00