diff options
author | Nick Østergaard | 2014-06-08 13:47:23 +0200 |
---|---|---|
committer | Nick Østergaard | 2014-06-08 13:47:23 +0200 |
commit | 9aabd92bcd9a8253f6fc5dbdb05d4fecc09af248 (patch) | |
tree | 49e0c2df62752b2a6411d4fbd4932a27ddac036e | |
parent | a62ffb69fa699568bcbca0555b95cb365ae46583 (diff) | |
download | aur-9aabd92bcd9a8253f6fc5dbdb05d4fecc09af248.tar.gz |
Add environment variable
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | kicad.install | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = kicad-pretty-git pkgdesc = KiCad .pretty repos. Theese are the new footprint library. pkgver = 1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/KiCad install = kicad.install arch = any @@ -1,7 +1,7 @@ # Maintainer: Nick Østergaard <oe.nick at gmail dot com> pkgname=kicad-pretty-git pkgver=1 -pkgrel=1 +pkgrel=2 pkgdesc="KiCad .pretty repos. Theese are the new footprint library." arch=('any') url="https://github.com/KiCad" @@ -41,6 +41,9 @@ package() { wget -q https://raw.githubusercontent.com/KiCad/kicad-library/master/template/fp-lib-table.for-pretty \ -O "$pkgdir/usr/share/kicad/footprints/fp-lib-table" + + mkdir -p "$pkgdir/etc/profile.d" + echo "export KISYSMOD=/usr/share/kicad/footprints" > "$pkgdir/etc/profile.d/kicad-pretty-git.sh" } # vim:set ts=2 sw=2 et: diff --git a/kicad.install b/kicad.install index 60ca7a77497c..58fa5abfc529 100644 --- a/kicad.install +++ b/kicad.install @@ -1,5 +1,5 @@ post_install() { - echo "Remember to set KISYSMOD environment variable to:" - echo " KISYSMOD="/usr/share/kicad/footprints"" + echo "The KISYSMOD environmet variable is set in profile.d," + echo "so make sure to restart your desktop session to reaload." echo "And copy /usr/share/kicad/footprints/fp-lib-table to \$HOME" } |