@meyznu I've been using the following:
pkgver() {
cd $pkgname
# include commit hash in version
git describe --long --tags | sed 's/-/./g'
}
prepare() {
# required due to https://bbs.archlinux.org/viewtopic.php?id=280571
git config --global protocol.file.allow always
...
}
build() {
cd $pkgname
mkdir -p build; cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_BROWSER=ON \
-DCEF_ROOT_DIR="/opt/cef-obs" \
-DOBS_VERSION_OVERRIDE=$(echo -n "$pkgver" | cut -d. -f1-4 | sed 's/beta//') ..
# remove the word "beta" from $pkgver when using OBS_VERSION_OVERRIDE
make
}
Pinned Comments
thotypous commented on 2021-02-05 14:12 (UTC)
If you don't want to build this package yourself, hourly builds are available at https://aur.chaotic.cx
benklett commented on 2016-02-06 23:11 (UTC) (edited on 2016-08-10 14:01 (UTC) by benklett)