Skip to content

Instantly share code, notes, and snippets.

@ljmf00
Created August 28, 2017 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmf00/f2f056f91c9fa618a5acb4b91a0d233c to your computer and use it in GitHub Desktop.
Save ljmf00/f2f056f91c9fa618a5acb4b91a0d233c to your computer and use it in GitHub Desktop.
# Maintainer: Luís "ljmf00" Ferreira <contact@lsferreira.net>
# based on https://github.com/aurora-fw/build/blob/master/PKGBUILD
pkgname=aurora-framework
_pkgname=libaurorafw
pkgdesc='Powerful and Scalable Framework'
pkgver=1.0
pkgrel=1
arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64')
url='https://github.com/aurora-fw'
license=('LGPL3')
makedepends=('git')
depends=('gtk3')
source=("git+https://git.savannah.gnu.org/git/acl.git")
sha256sums=('SKIP')
source=("http://download.savannah.gnu.org/releases/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha1sums=('7eed8c79f4739111079288a5ee0f5dcad093cd48')
build() {
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"
# HACK: The explicit LUA_LIBRARY is necessary due to CMake finding
# a liblua5.2.so, but Lua 5.3 header files with no liblua5.3.so when
# both lua and lua52 are installed. I'm not sure whether this should
# be fixed in CMake or Arch's lua package, but this fixes it for now
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLUA_LIBRARY=/usr/lib64/liblua.so \
"${srcdir}/${_pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment