makedeb


libapr2-svn 1904787-1


Apache Portable Runtime library. Version 2 from SVN trunk.

Click here to go back to the commit logs for libapr2-svn.

Commit:


Hash: e5272f856661a176a19f2a8f907eb0170bdbb1bf

Message: first pack

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 8d71bf2..f63fec2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,30 @@
-pkgbase = apr-2-svn
-	pkgdesc = Apache Portable Runtime library. This is version 2 from SVN trunk, possibly unstable.
-	pkgver = r1904703
-	pkgrel = 2
-	url = https://apr.apache.org/
-	arch = x86_64
-	license = APACHE
-	makedepends = svn
-	depends = expat
-	optdepends = python
-	optdepends = sqlite
-	provides = apr-2
-	conflicts = apr-2
-	source = apr-2-svn::svn+https://svn.apache.org/repos/asf/apr/apr/trunk/
-	source = ship_find_apr.m4.patch
-	source = fix-apr.pc.patch
-	source = omit_extra_libs.patch
-	source = dont_override_external_buildflags
-	sha256sums = SKIP
-	sha256sums = 268f65a263199901a07788a28e3e7bac74cd445dac677ca4e22a054d9e5315fd
-	sha256sums = 12595d331b48be9e44bd843635eb4f0f500bd213e197a551a9d383a28a24641f
-	sha256sums = 3d491d3af8fb5a75db4e085a17e5d8dcbe058bd256ef893ee779dc97fc9f8ad6
-	sha256sums = 5ac0bdc532479f6082d29115ac9d3ca24524fd8b97a556568755b88e5a68e3df
-
-pkgname = apr-2-svn
+generated-by = makedeb
+pkgname = libapr2-svn
+pkgbase = libapr2-svn
+pkgdesc = Apache Portable Runtime library. Version 2 from SVN trunk.
+pkgrel = 1
+pkgver = 1904787
+url = https://apr.apache.org/
+arch = amd64
+depends = libc6
+depends = expat
+makedepends = subversion
+makedepends = libexpat-dev
+optdepends = python
+optdepends = sqlite
+source = libapr2-svn::svn+https://svn.apache.org/repos/asf/apr/apr/trunk/
+source = ship_find_apr.m4.patch
+source = fix-apr.pc.patch
+source = omit_extra_libs.patch
+source = dont_override_external_buildflags
+control_fields = Priority: optional
+control_fields = Section: libs
+sha256sums = SKIP
+sha256sums = 268f65a263199901a07788a28e3e7bac74cd445dac677ca4e22a054d9e5315fd
+sha256sums = 12595d331b48be9e44bd843635eb4f0f500bd213e197a551a9d383a28a24641f
+sha256sums = 3d491d3af8fb5a75db4e085a17e5d8dcbe058bd256ef893ee779dc97fc9f8ad6
+sha256sums = 5ac0bdc532479f6082d29115ac9d3ca24524fd8b97a556568755b88e5a68e3df
+makedepends = subversion
+makedepends = libexpat-dev
+optdepends = python
+optdepends = sqlite
diff --git a/PKGBUILD b/PKGBUILD
index 0eba1e6..06ec5f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,15 @@
-# Maintainer: fft
+# Maintainer: fft <nobody@nowhere.no>
 
-pkgname=apr-2-svn
-pkgver=r1904787
+pkgname=libapr2-svn
+pkgver=1904787
 pkgrel=1
-pkgdesc='Apache Portable Runtime library. This is version 2 from SVN trunk, possibly unstable.'
-arch=('x86_64')
+pkgdesc='Apache Portable Runtime library. Version 2 from SVN trunk.'
+arch=('amd64')
 url='https://apr.apache.org/'
-depends=('expat') # libxml2 also supported
-makedepends=('svn')
+control_fields=('Priority: optional' 'Section: libs')
+depends=('libc6' 'expat') # libxml2 also supported
+makedepends=('subversion' 'libexpat-dev')
 optdepends=('python' 'sqlite')
-license=('APACHE')
-conflicts=(apr-2) # for the future, when APR 2 will be released.
-provides=(apr-2)
 source=("${pkgname}::svn+https://svn.apache.org/repos/asf/apr/apr/trunk/"
         'ship_find_apr.m4.patch'
         'fix-apr.pc.patch'
@@ -26,7 +24,7 @@ sha256sums=('SKIP'
 pkgver() {
   cd "${pkgname}"
   local ver="$(svnversion)"
-  printf "r%s" "${ver//[[:alpha:]]}"
+  printf "%s" "${ver//[[:alpha:]]}"
 }
 
 prepare() {
@@ -41,11 +39,13 @@ prepare() {
 
 build() {
   cd "${pkgname}"
-    ./configure --prefix=/usr --includedir=/usr/include/apr-2 \
+    ./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu \
+    --enable-layout=Debian \
+    --includedir=/usr/include/apr-2 \
+    --libdir=/usr/lib/x86_64-linux-gnu \
     --with-installbuilddir=/usr/share/apr-2/build \
     --enable-nonportable-atomics \
-    --with-devrandom=/dev/urandom --disable-static
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+    --enable-allocator-uses-mmap
   make
 }
 
@@ -57,5 +57,7 @@ check() {
 package() {
   cd "${pkgname}"
   make DESTDIR="${pkgdir}" install
-  rm "${pkgdir}/usr/lib/apr.exp" # conflict with apr package and seems useless on linux
+  chmod a-x "${pkgdir}/usr/lib/x86_64-linux-gnu/libapr-2.la" "${pkgdir}/usr/lib/x86_64-linux-gnu/libapr-2.so.0.0.0"
+  perl -p -i -e "s,^dependency_libs=.*,dependency_libs=''," "${pkgdir}/usr/lib/x86_64-linux-gnu/libapr-2.la"
+  rm "${pkgdir}/usr/lib/x86_64-linux-gnu/apr.exp" # conflict with apr package and seems useless on linux
 }