Package Details: filegdb-api 1.5.1-4

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: okanisis
Maintainer: alireza6677
Last Packager: alireza6677
Votes: 3
Popularity: 0.004098
First Submitted: 2013-09-14 01:36 (UTC)
Last Updated: 2023-09-24 08:36 (UTC)

Dependencies (2)

Sources (1)

Pinned Comments

alireza6677 commented on 2023-09-24 08:51 (UTC)

Hi, I'm the new maintainer. I've updated the PKGBUILD and it should now work without any errors.

Latest Comments

1 2 3 Next › Last »

alireza6677 commented on 2023-09-24 08:51 (UTC)

Hi, I'm the new maintainer. I've updated the PKGBUILD and it should now work without any errors.

MarsSeed commented on 2023-07-11 11:38 (UTC)

Please remove the optdepend gdal-filegdb. It doesn't make sense to add the dependent as a dependency (adding the consumer library as a consumed library).

Also, I've filed an AUR package merge request (PRQ#44267) from the abandoned and outdated gdal-filegdb to the newer and currently maintained gdal-libkml-filegdb. The latter is essentially the same (both enable filegdb and libkml support). The former package will cease to exist.

kikislater commented on 2020-10-09 04:55 (UTC) (edited on 2020-10-09 04:55 (UTC) by kikislater)

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 (UTC) (edited on 2019-05-07 04:26 (UTC) by kikislater)

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*

okanisis commented on 2019-05-06 19:45 (UTC)

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 (UTC) (edited on 2019-05-06 14:46 (UTC) by kikislater)

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 (UTC)

Please update to 1.5 as advise in gdal wiki

dobedobedo commented on 2018-07-03 10:30 (UTC)

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 (UTC)

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

bjdm commented on 2016-02-03 08:46 (UTC)

@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*