Skip to content

Commit 01b3faf

Browse files
Updated PKGBUILD and install script
1 parent 2351a49 commit 01b3faf

3 files changed

Lines changed: 24 additions & 30 deletions

File tree

PKGBUILD

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Maintainer: Ulises Jeremias Cornejo Fandos <ulisescf.24@gmail.com>
2-
# Maintainer: Federico Ramon Gasquez <federicogasquez@gmail.com>
3-
# Maintainer: Maria Macarena Lindo Poisson <maquipoisson@gmail.com>
42

53
pkgname=dots-stable
6-
pkgver=1.0.0
4+
pkgver=1.2.2
75
pkgrel=1
86
pkgdesc="Dotfiles generator that allows quick configuration and managing of different tools and window managers in multiple OSs"
97
arch=(any)
@@ -17,18 +15,17 @@ source=("git+$url.git")
1715
md5sums=('SKIP')
1816

1917
pkgver() {
20-
cd dotfiles || exit 1
21-
git fetch --tags
18+
cd dotfiles
2219
git describe --tags "$(git rev-list --tags --max-count=1)" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
2320
}
2421

2522
package() {
26-
cd dotfiles || exit 1
23+
cd dotfiles
2724
git fetch --tags
2825
latest_release=$(git describe --tags "$(git rev-list --tags --max-count=1)")
2926
git checkout "${latest_release}"
3027
PKGNAME=dots
31-
DESTDIR="${pkgdir}"
32-
export DESTDIR PKGNAME
28+
PKGDIR="${pkgdir}"
29+
export PKGDIR PKGNAME
3330
./install
3431
}

PKGBUILD.dev

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Maintainer: Ulises Jeremias Cornejo Fandos <ulisescf.24@gmail.com>
2-
# Maintainer: Federico Ramon Gasquez <federicogasquez@gmail.com>
3-
# Maintainer: Maria Macarena Lindo Poisson <maquipoisson@gmail.com>
42

53
pkgname=dots-git
6-
pkgver=1.0.0.r11.ge8b9cfc
4+
pkgver=1.2.2
75
pkgrel=1
86
pkgdesc="Dotfiles generator that allows quick configuration and managing of different tools and window managers in multiple OSs"
97
arch=(any)
@@ -17,15 +15,14 @@ source=("git+$url.git")
1715
md5sums=('SKIP')
1816

1917
pkgver() {
20-
cd dotfiles || exit 1
21-
git fetch --tags
18+
cd dotfiles
2219
git describe --tags "$(git rev-list --tags --max-count=1)" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
2320
}
2421

2522
package() {
26-
cd dotfiles || exit 1
23+
cd dotfiles
2724
PKGNAME=dots
28-
DESTDIR="${pkgdir}"
29-
export DESTDIR PKGNAME
25+
PKGDIR="${pkgdir}"
26+
export PKGDIR PKGNAME
3027
./install
3128
}

install

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ PKGNAME=${PKGNAME:-"dots"}
77
# creates variable `os`
88
. "${ROOT}"/util/os.sh
99

10-
rm -rf "${DESTDIR}/opt/${PKGNAME}" \
11-
"${DESTDIR}/usr/bin/dots" \
12-
"${DESTDIR}/usr/share/licenses/${PKGNAME}/" \
13-
"${DESTDIR}/usr/share/doc/${PKGNAME}/"
10+
rm -rf "${PKGDIR}/opt/${PKGNAME}" \
11+
"${PKGDIR}/usr/bin/dots" \
12+
"${PKGDIR}/usr/share/licenses/${PKGNAME}/" \
13+
"${PKGDIR}/usr/share/doc/${PKGNAME}/"
1414

15-
install -d "${DESTDIR}/opt/${PKGNAME}"
15+
install -d "${PKGDIR}/opt/${PKGNAME}"
1616

1717
for dirname in common "${os}" ui util; do
18-
cp -Rf "${ROOT}"/"${dirname}" "${DESTDIR}/opt/${PKGNAME}"
18+
cp -Rf "${ROOT}"/"${dirname}" "${PKGDIR}/opt/${PKGNAME}"
1919
done
2020

21-
install -Dm644 "${ROOT}"/LICENSE -t "${DESTDIR}/usr/share/licenses/${PKGNAME}/"
22-
install -Dm644 "${ROOT}"/README.md -t "${DESTDIR}/usr/share/doc/${PKGNAME}/"
23-
install -Dm755 "${ROOT}"/dots -t "${DESTDIR}/opt/${PKGNAME}/"
21+
install -Dm644 "${ROOT}"/LICENSE -t "${PKGDIR}/usr/share/licenses/${PKGNAME}/"
22+
install -Dm644 "${ROOT}"/README.md -t "${PKGDIR}/usr/share/doc/${PKGNAME}/"
23+
install -Dm755 "${ROOT}"/dots -t "${PKGDIR}/opt/${PKGNAME}/"
2424

25-
mkdir -p "${DESTDIR}"/usr/bin
25+
mkdir -p "${PKGDIR}"/usr/bin
2626

27-
# Create dots binary at ${DESTDIR}/usr/bin/${PKGNAME} to wrap the file at ${DESTDIR}/opt/${PKGNAME}/dots
28-
cat > "${DESTDIR}"/usr/bin/"${PKGNAME}" <<EOF
27+
# Create dots binary at ${PKGDIR}/usr/bin/${PKGNAME} to wrap the file at ${PKGDIR}/opt/${PKGNAME}/dots
28+
cat > "${PKGDIR}"/usr/bin/"${PKGNAME}" <<EOF
2929
#!/usr/bin/env sh
3030
31-
${DESTDIR}/opt/${PKGNAME}/dots "\$@"
31+
${PKGDIR}/opt/${PKGNAME}/dots "\$@"
3232
EOF
3333

34-
chmod +x "${DESTDIR}/usr/bin/${PKGNAME}"
34+
chmod +x "${PKGDIR}/usr/bin/${PKGNAME}"

0 commit comments

Comments
 (0)