import soci from archlinuxcn

This commit is contained in:
bgme 2023-05-15 23:25:24 +08:00
parent 39a4e5ae94
commit c36585460c
5 changed files with 26 additions and 30 deletions

View file

@ -3,9 +3,7 @@ maintainers:
email: i@bgme.me
repo_depends:
- soci-git
update_on_build:
- pkgbase: soci-git
- soci
build_prefix: extra-x86_64

View file

@ -6,6 +6,7 @@ build_prefix: extra-x86_64
pre_build_script: |
aur_pre_build()
vcs_update()
add_makedepends(['git'])
post_build: aur_post_build

View file

@ -1,18 +0,0 @@
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build_script: |
aur_pre_build()
add_makedepends(['git'])
post_build: aur_post_build
update_on:
- source: aur
aur: soci-git
- source: github
github: SOCI/soci
branch: release/4.0

View file

@ -3,33 +3,30 @@
# Contributor: Daniel Nagy <danielnagy at gmx de>
# Contributor: Mika Fischer <mika.fischer@zoopnet.de>
pkgname=soci-git
pkgname_=soci
pkgname=soci
pkgver=4.0.3.r0.g438e3549
pkgrel=1
pkgdesc="Database access library for C++"
arch=('x86_64')
url="http://soci.sf.net"
license=('custom:boost')
depends=('postgresql-libs' 'sqlite3' 'unixodbc')
makedepends=("cmake" "git")
depends=('postgresql-libs' 'sqlite3' 'unixodbc' 'boost-libs' 'mariadb-libs')
makedepends=('cmake' 'git' 'boost')
optdepends=('instantclient-basic: support for oracle databases'
'libmysqlclient: support for mysql databases'
'postgresql-libs: support for postgresql databases'
'sqlite3: support for sqlite databases'
'unixodbc: support for ODBC databases')
provides=("soci=$pkgver")
conflicts=('soci')
source=("git+https://github.com/SOCI/soci.git#branch=release/4.0")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname_}"
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/; s/-/./g'
}
build() {
cmake -B build "${pkgname_}" \
cmake -B build "${pkgname}" \
-DSOCI_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_CXX_FLAGS="-Wno-format-overflow" \
@ -45,6 +42,6 @@ package() {
if [ -e "${pkgdir}/usr/lib64" ]; then
mv "${pkgdir}/usr/lib64" "${pkgdir}/usr/lib"
fi
install -Dm0644 "${srcdir}/${pkgname_}/LICENSE_1_0.txt" \
install -Dm0644 "${srcdir}/${pkgname}/LICENSE_1_0.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

18
repo/soci/lilac.yaml Normal file
View file

@ -0,0 +1,18 @@
# import from archlinuxcn
# https://github.com/archlinuxcn/repo/tree/master/archlinuxcn/soci
maintainers:
- github: yingziwu
email: i@bgme.me
build_prefix: extra-x86_64
pre_build: vcs_update
post_build: git_pkgbuild_commit
update_on:
- source: github
github: SOCI/soci
branch: release/4.0
- alias: boost