diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-11-06 20:48:51 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-11-06 21:07:18 +0800 |
commit | cadde1312df01d4e5939e05816cb011a8e14d5b1 (patch) | |
tree | f40db61381f71fdd2fb2163914f4c1e77cca313e | |
parent | de4251880f744d4770711daf120412c16cfcc81d (diff) |
Use Arch PKGBUILD pkgrel for VIEWER_VERSION_REVISION
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | indra/newview/PKGBUILD.in | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -114,7 +114,8 @@ $ export LL_BUILD="-O3 -std=c++17 -fPIC -DLL_LINUX=1" $ cmake -DCMAKE_BUILD_TYPE:STRING=Release -DADDRESS_SIZE:STRING=64 -DUSESYSTEMLIBS:BOOL=ON -DUSE_OPENAL:BOOL=ON -DUSE_FMODSTUDIO:BOOL=OFF -DENABLE_MEDIA_PLUGINS:BOOL=ON -DLL_TESTS:BOOL=OFF -DNDOF:BOOL=OFF -DROOT_PROJECT_NAME:STRING=Megapahit -DVIEWER_CHANNEL:STRING=Megapahit -DVIEWER_BINARY_NAME:STRING=megapahit -DBUILD_SHARED_LIBS:BOOL=OFF -DINSTALL:BOOL=ON -DPACKAGE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr ../indra $ make -j`nproc` $ makepkg -R -$ sudo pacman -U megapahit-`cat newview/viewer_version.txt`-1-`uname -m`.pkg.tar.zst +$ sudo pacman -U megapahit-`cat newview/viewer_version.txt|sed 's/\(.*\)\./\1-/'`-`uname -m`.pkg.tar.zst +$ megapahit ``` ### Gentoo diff --git a/indra/newview/PKGBUILD.in b/indra/newview/PKGBUILD.in index b2a02318f2..d917f216b6 100644 --- a/indra/newview/PKGBUILD.in +++ b/indra/newview/PKGBUILD.in @@ -1,7 +1,7 @@ # Maintainer: $ENV{USER}@${VIEWER_PACKAGE_DOMAIN_NAME} pkgname=${VIEWER_BINARY_NAME} -pkgver=${VIEWER_VERSION_MAJOR}.${VIEWER_VERSION_MINOR}.${VIEWER_VERSION_PATCH}.${VIEWER_VERSION_REVISION} -pkgrel=1 +pkgver=${VIEWER_VERSION_MAJOR}.${VIEWER_VERSION_MINOR}.${VIEWER_VERSION_PATCH} +pkgrel=${VIEWER_VERSION_REVISION} pkgdesc="${VIEWER_PACKAGE_COMMENT}" arch=('${CMAKE_SYSTEM_PROCESSOR}') url="https://${VIEWER_PACKAGE_DOMAIN_NAME}" |