summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2020-02-15 21:11:42 +0100
committerSefa Eyeoglu2020-02-15 21:13:39 +0100
commit1ee0bc0543476932dc222a6b888c41a31b0097e5 (patch)
treeadf73326b03470888edbbeef2cd838090648b719
parent5bce9bb8a60982cc19bd0215aa245be464770d12 (diff)
downloadaur-1ee0bc0543476932dc222a6b888c41a31b0097e5.tar.gz
upgpkg: proji 0.18.1-2
Add instructions for configuration
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD10
-rw-r--r--proji.install5
3 files changed, 14 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3709ac95f34..015acaef1f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = proji
pkgdesc = A fast and powerful cli project scaffolding tool
pkgver = 0.18.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/nikoksr/proji
+ install = proji.install
arch = x86_64
license = custom:MIT
makedepends = go-pie
diff --git a/PKGBUILD b/PKGBUILD
index 9ef10e197e1..8d36fef6a1d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,14 @@ _pkgname=proji
pkgname=${_pkgname}
pkgver=0.18.1
-pkgrel=1
+pkgrel=2
pkgdesc="A fast and powerful cli project scaffolding tool"
arch=("x86_64")
url="https://github.com/nikoksr/proji"
license=("custom:MIT")
-
depends=("glibc")
makedepends=("go-pie" "golang-golang-x-sys" "golang-golang-x-text" "golang-github-stretchr-testify" "git")
-
+install="${pkgname}.install"
source=("${_pkgname}::git+https://github.com/nikoksr/proji.git#tag=v${pkgver}")
sha512sums=('SKIP')
@@ -41,4 +40,9 @@ package() {
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
+
+ config_directory="${pkgdir}/usr/share/doc/${_pkgname}/example-config"
+ install -d "${config_directory}/db" "${config_directory}/examples" "${config_directory}/scripts" "${config_directory}/templates"
+ install -Dm644 "assets/examples/example-config.toml" "${config_directory}/config.toml"
+ install -Dm644 "assets/examples/example-class-export.toml" "${config_directory}/examples/proji-class.toml"
}
diff --git a/proji.install b/proji.install
new file mode 100644
index 00000000000..d5c5a03d2d0
--- /dev/null
+++ b/proji.install
@@ -0,0 +1,5 @@
+function post_install {
+ echo "
+You need to setup your config structure in $HOME/.config first. Run cp -r "/usr/share/doc/proji/example-config/" "~/.config/proji"
+"
+}