Fix cl-icl
This commit is contained in:
+29
-7
@@ -9,10 +9,10 @@ url='https://github.com/atgreen/icl'
|
|||||||
arch=('any')
|
arch=('any')
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
provides=('cl-icl')
|
provides=('cl-icl')
|
||||||
depends=('sbcl')
|
makedepends=('ocicl' 'sbcl' 'libfixposix')
|
||||||
makedepends=('ocicl')
|
|
||||||
source=('git+https://github.com/atgreen/icl.git')
|
source=('git+https://github.com/atgreen/icl.git')
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
options=(!strip)
|
||||||
|
|
||||||
pkgver(){
|
pkgver(){
|
||||||
cd "icl"
|
cd "icl"
|
||||||
@@ -25,14 +25,36 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
cache="${PWD}/cache"
|
||||||
cd icl
|
cd icl
|
||||||
make
|
# redirect the compile cache to the current directory
|
||||||
|
XDG_CACHE_HOME="${cache}" make
|
||||||
|
}
|
||||||
|
|
||||||
|
_find_osicat() {
|
||||||
|
find "${PWD}/cache" -name libosicat.so -exec dirname '{}' \;
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd icl
|
# binary
|
||||||
|
install -Dt "$pkgdir/usr/bin/" icl/icl
|
||||||
|
# man page
|
||||||
|
install -m 0644 -Dt "$pkgdir/usr/share/man/man1/" icl/man/icl.1
|
||||||
|
# emacs library
|
||||||
install -m 0644 -Dt "$pkgdir/usr/share/emacs/site-lisp/icl/" \
|
install -m 0644 -Dt "$pkgdir/usr/share/emacs/site-lisp/icl/" \
|
||||||
emacs/icl.el emacs/icl-autoloads.el
|
icl/emacs/icl.el icl/emacs/icl-autoloads.el
|
||||||
install -Dt "$pkgdir/usr/bin/" icl
|
# osicat library
|
||||||
install -Dt "$pkgdir/usr/share/man/man1/" man/icl.1
|
find "${PWD}/cache" -name libosicat.so -exec \
|
||||||
|
install -m 0644 -Dt "$pkgdir/usr/lib/icl/" '{}' \;
|
||||||
|
# ldconfig configuration
|
||||||
|
mkdir -p "$pkgdir/usr/lib/ld.so.conf.d/"
|
||||||
|
echo "/usr/lib/icl" >"$pkgdir/usr/lib/ld.so.conf.d/icl.conf"
|
||||||
|
# bash comkpletions
|
||||||
|
install -m 0644 -Dt "$pkgdir/usr/share/bash/bash-completion/completions/" \
|
||||||
|
icl/completions/icl.bash
|
||||||
|
# install license
|
||||||
|
install -m 0644 -Dt "$pkgdir/usr/share/licenses/cl-icl/" \
|
||||||
|
icl/assets/OPEN-SOURCE-NOTICES.txt icl/LICENSE
|
||||||
|
# bundled ASDF
|
||||||
|
install -m 0644 -Dt "$pkgdir/usr/share/icl/asdf/" icl/3rd-party/asdf/asdf.lisp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user