diff options
author | Adrian Perez de Castro | 2019-01-07 17:45:10 +0200 |
---|---|---|
committer | Adrian Perez de Castro | 2019-01-07 17:48:03 +0200 |
commit | 1a505ce31a4de0e65e2d56bdfda76413a33bdc34 (patch) | |
tree | 6d9a069474b6d8fb01e4c3aed5e631d211a18af2 /PKGBUILD | |
parent | 20fda273ebcedd431dac8a8e0484eb6c4a54a1d0 (diff) | |
download | aur-1a505ce31a4de0e65e2d56bdfda76413a33bdc34.tar.gz |
Remove usage of Git submodules, use packages instead
Use system-provided packages for UTHash, Lua, Termbox, and PCRE.
This makes the vendored Git submodules unneeded and simplifies the
packaging.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 10 insertions, 15 deletions
@@ -1,18 +1,14 @@ # Maintainer: Adrián Pérez de Castro pkgdesc='Flexible terminal-based text editor' pkgname=mle-git -pkgver=r365.157724d +pkgver=r379.af76670 pkgrel=1 arch=(x86_64) url='https://github.com/adsr/mle' -depends=(pcre2) -source=("${pkgname}::git+${url}" - git+https://github.com/lua/lua - git+https://github.com/adsr/mlbuf - git+https://github.com/nsf/termbox - git+https://github.com/troydhanson/uthash -) -sha512sums=(SKIP SKIP SKIP SKIP SKIP) +depends=(pcre termbox lua) +makedepends=(git uthash) +source=("${pkgname}::git+${url}") +sha512sums=(SKIP) pkgver () { cd "${pkgname}" @@ -25,12 +21,11 @@ pkgver () { prepare () { cd "${pkgname}" - git submodule init - local m - for m in mlbuf termbox uthash ; do - git config "submodule.${m}.url" "${srcdir}/${m}" - done - git submodule update + + # The source code uses <lua5.3/lua.h>; and the Arch Linux "lua" package + # places the headers directly under /usr/include, so let's just use a + # symlink to provide the headers at the expected include location. + ln -snf /usr/include lua5.3 } build () { |