amtoine / pkgbuilds

A collection of PKGBUILDs to install my configuration
GNU General Public License v3.0
2 stars 0 forks source link

cd into the repo name #6

Closed amtoine closed 2 years ago

amtoine commented 2 years ago

Inside the package functions of the PKGBUILDs, the program should cd inside the directory with repo name.

All the packages need to cd into the git cloned repo in order to install. Right now, the values for the directories to cd to are hardcoded, and even wrong in the case of mut-ex-wallpapers. To never try to cd inside a repository that does not exist, and as $repo is defined and does always exist as it is the name of the repo being git cloned, it is safe to cd into $repo.

IMPLEMENTATION: simply apply the following diff to all the PKGBUILDs, with possibly slight modifications of course depending on the exact file.

@@ -35,3 +35,3 @@ pkgver() {
 package() {
-    cd "${pkgname}"
+    cd "$repo"