user:yan:aur_repack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:yan:aur_repack [2017/03/08 06:44] – [Optimizing] yan | user:yan:aur_repack [2018/04/30 05:02] (current) – [Porting rpm/deb package into archlinux enviroment] yan | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Porting rpm/deb package into archlinux enviroment ===== | ===== Porting rpm/deb package into archlinux enviroment ===== | ||
- | For some software there is only precompiled package | + | For some software there is only a precompiled package |
- | ** This method should be avoided when source code is aviable. You should have some really good motive to undergo this. This is usually | + | ** This method should be avoided when the source code is available. You should have some really good motive to undergo this. Keep in mind that this is not the cleanest and the safest way how to make a SW package. ** |
===== Unpacking ===== | ===== Unpacking ===== | ||
- | * **bsdtar** is capable of unpacking both .rpm and .deb packages, syntax is **bsdtar -xf filename**. It's also used by makepkg for unpacking source files. | + | * **bsdtar** is capable of unpacking both the .rpm and the .deb packages, syntax is **bsdtar -xf filename**. It's also used by makepkg for unpacking source files. |
===== Optimizing ===== | ===== Optimizing ===== | ||
Line 15: | Line 15: | ||
* Sometimes running ldd on libraries provided by package helps (was case of one Qt5 library and libglu). | * Sometimes running ldd on libraries provided by package helps (was case of one Qt5 library and libglu). | ||
* If you're in dark, trying to look for package dependencies in original package could help, of course usually library in Archlinux is provided under different package compared to for example Debian. | * If you're in dark, trying to look for package dependencies in original package could help, of course usually library in Archlinux is provided under different package compared to for example Debian. | ||
- | * Don't forget to try functionality, | + | * Don't forget to try the functionality, |
== Getting things nice == | == Getting things nice == | ||
- | * Make clear archlinux installation. | + | * Make a clear archlinux installation. |
- | * Try to get package working under those conditions to identify all crucial dependencies. | + | * Try to get the package working under those conditions to identify all the crucial dependencies. |
===== Repacking ===== | ===== Repacking ===== | ||
- | * It's good to read few makepkg files and don't forget that [[https:// | + | * It's good to read a few makepkg files and don't forget that [[https:// |
- | * Make a copy of similar makepkg recipe (just some which also goes from precompiled package) and fit it to your case. | + | * Make a copy of a similar makepkg recipe (just some which also goes from precompiled package) and fit it to your case. |
* When you're modifying recipe dont forget to keep up with [[https:// | * When you're modifying recipe dont forget to keep up with [[https:// | ||
* Usually some desktop inplementation can improve user experience (for example line 18 in [[https:// | * Usually some desktop inplementation can improve user experience (for example line 18 in [[https:// | ||
* Clean up everything | * Clean up everything | ||
* If you're satisfied don't forget how long it took you to get things working. When you upload your PKGBUILD to [[https:// | * If you're satisfied don't forget how long it took you to get things working. When you upload your PKGBUILD to [[https:// |
user/yan/aur_repack.1488955475.txt.gz · Last modified: 2017/03/08 06:44 by yan