diff options
author | Jeremy Symon | 2017-05-06 22:20:48 +1200 |
---|---|---|
committer | Jeremy Symon | 2017-05-06 22:20:48 +1200 |
commit | 5ae5cebd33fd01503eda44bf4de0643bf079a50f (patch) | |
tree | 57fb0d33c96ab7899a9c2bb31ed660c699870c79 | |
download | aur-5ae5cebd33fd01503eda44bf4de0643bf079a50f.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | cmake-mandir.patch | 24 |
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..04a681514438 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = dale-git + pkgdesc = Lisp-flavoured C + pkgver = r1036.933e671 + pkgrel = 1 + url = https://github.com/tomhrr/dale/ + arch = x86_64 + arch = i686 + license = BSD + makedepends = git + makedepends = cmake + makedepends = pkg-config + makedepends = llvm35 + depends = libffi + depends = zlib + depends = gcc-libs-multilib + depends = ncurses + provides = dale + source = git+https://github.com/tomhrr/dale.git + source = cmake-mandir.patch + sha512sums = SKIP + sha512sums = dedff6224c9b19d821dc47b8ecf55e2444cf160320b9bcdc8343699575cf6ec4da402ee7d2a9341c491e62b9f179d458c1d01efad226fc09e283f3c2a6fac2a2 + +pkgname = dale-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..66a35f52120c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Jeremy Symon <jtsymon@gmail.com> +pkgname=dale-git +_gitname=dale +pkgver=r1036.933e671 +pkgrel=1 +pkgdesc='Lisp-flavoured C' +url='https://github.com/tomhrr/dale/' +arch=('x86_64' 'i686') +license=('BSD') +depends=('libffi' 'zlib' 'gcc-libs-multilib' 'ncurses') +makedepends=('git' 'cmake' 'pkg-config' 'llvm35') +provides=('dale') +source=( + "git+https://github.com/tomhrr/${_gitname}.git" + "cmake-mandir.patch" +) +sha512sums=( + 'SKIP' + 'dedff6224c9b19d821dc47b8ecf55e2444cf160320b9bcdc8343699575cf6ec4da402ee7d2a9341c491e62b9f179d458c1d01efad226fc09e283f3c2a6fac2a2' +) + +pkgver() { + cd "$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$_gitname" + patch -Np1 -i "${srcdir}/cmake-mandir.patch" +} + +build() { + mkdir -p build + cd build + # for some reason cmake can't find libffi... this is probably a problem with CMakeLists.txt, but for now I'm working around it: + cmake ../$_gitname -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_MANDIR=/usr/share/man -DFFI_INCLUDE_DIR=$(pkg-config --cflags-only-I libffi | cut -b3-) + make +} + +check() { + cd build + make tests +} + +package() { + cd build + make DESTDIR="$pkgdir" install + + cd ../$_gitname + install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
\ No newline at end of file diff --git a/cmake-mandir.patch b/cmake-mandir.patch new file mode 100644 index 000000000000..981d478b180b --- /dev/null +++ b/cmake-mandir.patch @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 61648a9..e30b9df 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,6 +44,10 @@ set (D_LLVM_VERSION_MAJOR "${D_LLVM_VERSION_MAJOR}") + set (D_LLVM_VERSION_MINOR "${D_LLVM_VERSION_MINOR}") + set (LLVM_BIN_DIR "${LLVM_BIN_DIR}") + ++if (NOT CMAKE_INSTALL_MANDIR) ++ set (CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_PREFIX}/man") ++endif () ++ + if (NOT CC) + if (CLANG) + set (CC "${CLANG}") +@@ -319,7 +323,7 @@ add_dependencies (tests dalec cstdio cstring pthread cfloat ctype cerrno ctime c + # Manfile for the compiler. + + add_custom_target (documentation ALL DEPENDS man/dalec.1.gz) +-install (FILES man/dalec.1.gz DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1) ++install (FILES man/dalec.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) + + # Dale programs. (module-to-markdown was previously built with + # --static-modules, but there's a problem with that option in some |