summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBaptiste Careil2019-12-16 18:43:38 +0100
committerBaptiste Careil2019-12-16 18:43:38 +0100
commit58d075d236147c8419750818cdb2b03b6f09ff98 (patch)
tree37e3e544c4d6ed7834691e540b9a189cccb8590c /PKGBUILD
parent05f22693d50c6eff5575a8b420b35d49c4eb7749 (diff)
downloadaur-58d075d236147c8419750818cdb2b03b6f09ff98.tar.gz
Added compilation of lzip as an attempt to support self-update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 39 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6a669612f31..0d51aac2ab8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgdesc='An offline build planner for Path of Exile using PoBFrontent'
arch=('x86_64')
url='https://github.com/Openarl/PathOfBuilding'
license=('MIT')
-pkgver=1.4.152.r895.37
+pkgver=1.4.156.r996.37.479
depends=('zlib' 'qt5-base' 'luajit' 'libgl' 'curl')
makedepends=('meson' 'ninja' 'unzip' 'rsync')
@@ -15,17 +15,39 @@ source=(
'git+https://github.com/Openarl/PathOfBuilding'
'git+https://github.com/philroberts/pobfrontend'
'git+https://github.com/Lua-cURL/Lua-cURLv3'
+ 'https://github.com/Openarl/PathOfBuilding/files/1167199/PathOfBuilding-runtime-src.zip'
'PathOfBuilding.sh'
+ 'PathOfBuilding-force-disable-devmode.patch'
+ 'pobfrontend-writable-user-dir.patch'
+ 'lzip-linux.patch'
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
+ '6d21872a2b2bdbfaebb20de5cac28ac402316e5314c97a89049320ff13c2f622'
'02b44b44872bae4725bc6de600f4592ce33b26e90fa0f392922004ee15898446'
+ '38a09a82f06c2d8738f674c5d2818e5f9580bb25611212507814c97ac25adbd1'
+ '58a47220d0d1b0209734fc42c0f7dc603c231985eb52f393a7c28598200503e1'
+ '9dbc8802b74ceed78f1a6ba1d5b90251f5ae7f9a8cf5497426e4a35001112fcd'
+)
+noextract=(
+ 'PathOfBuilding-runtime-src.zip'
)
-#prepare() {
-#}
+prepare() {
+ # extract the runtime sources including sources for lzip and lcurl
+ (mkdir -p "${srcdir}/PathOfBuilding-runtime-src" \
+ && cd "${srcdir}/PathOfBuilding-runtime-src" \
+ && unzip -o "${srcdir}/PathOfBuilding-runtime-src.zip" \
+ )
+ # patch lzip
+ (cd "${srcdir}/PathOfBuilding-runtime-src/LZip" && patch -p1 <"${srcdir}/lzip-linux.patch")
+ # disable devmode
+ (cd "${srcdir}/PathOfBuilding" && patch -p1 <"${srcdir}/PathOfBuilding-force-disable-devmode.patch")
+ # fix pobfrontend to have a writable user dir
+ (cd "${srcdir}/pobfrontend" && patch -p1 <"${srcdir}/pobfrontend-writable-user-dir.patch")
+}
pkgver() {
cd "${srcdir}/PathOfBuilding"
@@ -33,10 +55,22 @@ pkgver() {
pob_r=$(git rev-list --count HEAD)
cd "${srcdir}/pobfrontend"
pf_r=$(git rev-list --count HEAD)
- printf '%s.r%s.%s' "$pob_v" "$pob_r" "$pf_r"
+ cd "${srcdir}/Lua-cURLv3"
+ lc_r=$(git rev-list --count HEAD)
+ printf '%s.r%s.%s.%s' "$pob_v" "$pob_r" "$pf_r" "$lc_r"
}
build() {
+ # build lzip.so
+ (cd "${srcdir}/PathOfBuilding-runtime-src/LZip" \
+ && g++ ${CXXFLAGS} -W -Wall -fPIC -shared -o lzip.so \
+ -I"$(pkgconf luajit --variable=includedir)" \
+ lzip.cpp \
+ ${LDFLAGS} \
+ -L"$(pkgconf luajit --variable=libdir)" \
+ -l"$(pkgconf luajit --variable=libname)" \
+ -lz
+ )
# build lcurl.so
(cd "${srcdir}/Lua-cURLv3" && make LUA_IMPL=luajit)
# build pobfrontend
@@ -61,6 +95,7 @@ package() {
# tidy-up permissions
chmod og-w -R "${dst_dir}"
# install binaries
+ install -s -m755 "${srcdir}/PathOfBuilding-runtime-src/LZip/lzip.so" -t "${dst_dir}"
install -s -m755 "${srcdir}/Lua-cURLv3/lcurl.so" -t "${dst_dir}"
install -s -m755 "${srcdir}/pobfrontend/build/pobfrontend" -t "${dst_dir}"
# install shell script