Package Details: filegdb-api 1.5.1-3

Git Clone URL: https://aur.archlinux.org/filegdb-api.git (read-only, click to copy)
Package Base: filegdb-api
Description: ESRI File Geodatabase (FileGDB) API
Upstream URL: https://github.com/Esri/file-geodatabase-api
Keywords: GIS
Licenses: Apache
Submitter: saultdon
Maintainer: saultdon
Last Packager: saultdon
Votes: 2
Popularity: 0.000000
First Submitted: 2013-09-14 01:36
Last Updated: 2019-05-06 19:14

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

kikislater commented on 2020-10-09 04:55

Please update with following PKGBUILD (or update if you don't like the way I did it) :

Download url are not good

Checksums are not good

libstdc++ was present in produced package ...

# Maintainer: SaultDon <sault.don gmail>
pkgname=filegdb-api
_pkgname=FileGDB_API
pkgver=1.5.1
pkgrel=3
pkgdesc="ESRI File Geodatabase (FileGDB) API"
arch=('i686' 'x86_64')
url="https://github.com/Esri/file-geodatabase-api"
license=('APACHE')
makedepends=('libxml2' 'clang>=3.7.0')
optdepends=('gdal-filegdb: wrapper')
changelog=$pkgname.changelog
case $CARCH in
i686)
  source=($pkgname-$pkgver.tar.gz::https://github.com/Esri/file-geodatabase-api/blob/master/${_pkgname}_${pkgver}/${_pkgname}_${pkgver//./_}-32gcc51.tar.gz?raw=true)
  md5sums=('145f760871892b822b5f26442e2e8255')
  ;; 
x86_64)
  source=($pkgname-$pkgver.tar.gz::https://github.com/Esri/file-geodatabase-api/blob/master/${_pkgname}_${pkgver}/${_pkgname}_${pkgver//./_}-64gcc51.tar.gz?raw=true)
  md5sums=('10a18003adaa6ccf0c4d8e6bb8da1e4f')
  ;; 
esac

prepare() {
    cd $srcdir
}

build() {
    cd $srcdir && mv ${_pkgname}* $pkgname
    rm $srcdir/${pkgname}/lib/libstdc*
    cd $srcdir/$pkgname

    #Build for linux
    export CPPFLAGS+=" -Dlinux"

    #Setup LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=$srcdir/${pkgname}/lib:$LD_LIBRARY_PATH

    #Modify make.include to use old ABI
    # cd "$srcdir/${pkgname}/include"
    # sed -i '/-D_LARGEFILE64_SOURCE/ s/$/ -D_GLIBCXX_USE_CXX11_ABI=0/' make.include

    #Building all samples
    cd "$srcdir/${pkgname}/samples"
    make

    # Building ProcessTopology
    cd "$srcdir/${pkgname}/samples/ProcessTopologies"

    # Insert libxml2 library path to Makefile
    #sed -i '/^CXXFLAGS=/ s/$/ -I\/usr\/include\/libxml2\//' Makefile
    #make
}

# Uncomment check() portion if you want to perform sample tests
# Warning: Lots of verbose output for tests!
#
#check() {
#   cd "$srcdir/${_pkgname}/samples/bin"
#   for i in *
#   do
#     ./${i}
#   done
#}

package() {
    cd $pkgdir

    mkdir -p $pkgdir/usr/{lib,share/{doc,licenses}/$pkgname}
    mkdir -p $pkgdir/usr/include

    install -Dm644 $srcdir/${pkgname}/lib/* "$pkgdir/usr/lib/"
    install -Dm644 $srcdir/${pkgname}/include/* "$pkgdir/usr/include/"

    cp -r $srcdir/${pkgname}/doc/html "$pkgdir/usr/share/doc/$pkgname/"

    find $pkgdir/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
    find $pkgdir/usr/share/doc/$pkgname/ -type f -exec chmod 644 '{}' \;

    chown root: $pkgdir/usr/share/doc/$pkgname/*
}

kikislater commented on 2019-05-07 04:07

Ok ! Script needs review :

==> Validating source files with md5sums...

filegdb-api-1.5.1.tar.gz ... FAILED

==> ERROR: One or more files did not pass the validity check!

So update PKGBUILD with proper md5sum ... next error on

==> Extracting sources...

==> Starting prepare()...

mv: cannot stat 'FileGDB_API-*': No such file or directory

==> ERROR: A failure occurred in prepare().

Aborting...

So just check what happen : File downloaded size is about 58k which is wrong because it didn't donwload the correct file ... It needs to replace blob by raw in URL and original md5sum is fine and build now.

Next there is conflicts and the final stage :

looking for conflicting packages...

Packages (1) filegdb-api-1.5.1-3

Total Installed Size: 25.46 MiB

Net Upgrade Size: 5.25 MiB

:: Proceed with installation? [Y/n] Y

(1/1) checking keys in keyring [######################] 100%

(1/1) checking package integrity [######################] 100%

(1/1) loading package files [######################] 100%

(1/1) checking for file conflicts [######################] 100%

error: failed to commit transaction (conflicting files)

filegdb-api: /usr/lib/libstdc++.so exists in filesystem (owned by gcc-libs)

filegdb-api: /usr/lib/libstdc++.so.6 exists in filesystem (owned by gcc-libs)

Errors occurred, no packages were upgraded.

Looks like a dangerous package !

Finally I added this at line 71

rm $srcdir/${pkgname}/lib/libstdc++.so*

saultdon commented on 2019-05-06 19:45

thanks for pointing that out, should be fixed with 1.5.1-3

let me know if you encounter any other problems

kikislater commented on 2019-05-06 14:45

Wrong link for 1.5.1

curl: (22) The requested URL returned error: 404 Not Found

==> ERROR: Failure while downloading http://downloads2.esri.com/Software/FileGDB_API_1_5_1-64gcc51.tar.gz

Aborting...

kikislater commented on 2019-04-11 17:32

Please update to 1.5 as advise in gdal wiki

dobedobedo commented on 2018-07-03 10:30

Hi, is it possible to modify the PKGBUILD to download the 1.5.1 api and compile?

alculquicondor commented on 2017-10-18 21:57

Upstream seems to have added support for gcc5.1+
https://github.com/Esri/file-geodatabase-api/blob/master/FileGDB_API_1.5.1/FileGDB_API_1_5_1-64gcc51.tar.gz
With this file, I was able to compile gdal with FileGDB support

eraptic commented on 2016-02-03 08:46

@striges1111 & @saultdon, Please ignore my last comment. I was in a rush to get home from work and was adding to CFLAGS not CPPFLAGS *facepalm*

eraptic commented on 2016-02-03 08:05

Hi @striges1111, I was just wondering if you would be able to give a little more information as to the fix you described? I have tried adding -D_GLIBCXX_USE_CXX11_ABI=0 to CFLAGs but still didn't have any luck. I didn't quite understand what you meant to adding it to 'make.include'.

@saultdon: any chance of having the patch merged into the PKGBUILD at all?

eraptic commented on 2016-02-03 08:05

Hi @striges1111, I was just wondering if you would be able to give a little more information as to the fix you described? I have tried adding -D_GLIBCXX_USE_CXX11_ABI=0 to CFLAGs but still didn't have any luck. I didn't quite understand what you meant to adding it to 'make.include'.

@saultdon: any chance of having the patch merged into the PKGBUILD at all?