mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
31 lines
772 B
Bash
31 lines
772 B
Bash
# Desktop support packages for Chakra
|
|
|
|
pkgname=shapelib
|
|
pkgver=1.2.10
|
|
pkgrel=1
|
|
pkgdesc='simple C API for reading and writing ESRI Shapefiles'
|
|
arch=('i686' 'x86_64')
|
|
url='http://shapelib.maptools.org/'
|
|
license=('LGPL' 'MIT')
|
|
options=('!libtool')
|
|
source=("http://dl.maptools.org/dl/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
'LICENSE')
|
|
md5sums=('4d96bd926167193d27bf14d56e2d484e'
|
|
'ab2b25e10a8b30c88e4c0fd4862d0a5b')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
sed -i -e s:'-O2':"${CFLAGS}": Makefile
|
|
make lib
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
sed -i -e s:/usr/local:${pkgdir}/usr: Makefile
|
|
sed -i -e s:/usr/bin/install:/bin/install: Makefile
|
|
make lib_install
|
|
install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|