summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics2019-01-21 14:19:32 +0100
committerfelics2019-01-21 14:19:32 +0100
commit680ed6eae1561b25c5fc2a792be356c2e1750c60 (patch)
tree25ce080c0aaa17b87e9cbbff4d88f721ad866a0c
parent2cd8c3d40cfe0402eb24257783b8ef8732327714 (diff)
downloadaur-680ed6eae1561b25c5fc2a792be356c2e1750c60.tar.gz
added a patch to rename pkg-config name to 'minizip2', and a pkg-config .pc-file.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
2 files changed, 22 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dead60dc5a8..486d8a70583 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = minizip2-2.3.3
pkgdesc = Mini zip and unzip based on libbsd and zlib. Version 2.3.3 (specific version).
pkgver = 2.3.3
- pkgrel = 2
+ pkgrel = 5
url = http://github.com/nmoinvaz/minizip
arch = x86_64
license = custom
@@ -14,7 +14,9 @@ pkgbase = minizip2-2.3.3
conflicts = minizip2
conflicts = libminizip2
source = minizip-2.3.3.tar.gz::https://github.com/nmoinvaz/minizip/archive/2.3.3.tar.gz
+ source = minizip.pc.rename-minizip2.patch::http://ix.io/1yQu
sha256sums = 8c74530d3095891525f53cda6aabe1df138255ef53d0f294791cb57c2cb5710c
+ sha256sums = 0700dfdb6c637b1a36cf15018a5d4d3ee92cb51d637e33341f4aaae3d4f480ad
pkgname = minizip2-2.3.3
diff --git a/PKGBUILD b/PKGBUILD
index 8372273e24c..d2c3b6b96de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname="${_pkgname}-2.3.3"
pkgdesc="Mini zip and unzip based on libbsd and zlib. Version 2.3.3 (specific version)."
_pkgver=2.3.3
pkgver="${_pkgver}"
-pkgrel=2
+pkgrel=5
arch=('x86_64')
license=('custom')
url="http://github.com/nmoinvaz/minizip"
@@ -30,13 +30,25 @@ conflicts=(
)
source=(
"${_pkgorigname}-${_pkgver}.tar.gz::https://github.com/nmoinvaz/${_pkgorigname}/archive/${_pkgver}.tar.gz"
+ "minizip.pc.rename-minizip2.patch::http://ix.io/1yQu"
)
sha256sums=(
'8c74530d3095891525f53cda6aabe1df138255ef53d0f294791cb57c2cb5710c'
+ '0700dfdb6c637b1a36cf15018a5d4d3ee92cb51d637e33341f4aaae3d4f480ad'
)
+prepare() {
+ cd "${srcdir}/${_pkgorigname}-${_pkgver}"
+
+ for _patch in 'minizip.pc.rename-minizip2.patch'; do
+ msg2 "Applying patch '${_patch}' ..."
+ patch -N -p1 --follow-symlinks -i "${srcdir}/${_patch}"
+ done
+}
+
build() {
cd "${srcdir}/${_pkgorigname}-${_pkgver}"
+
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib/minizip2 \
@@ -59,6 +71,12 @@ package() {
make DESTDIR="${pkgdir}" install
+ # install pkg-config file
+ install -d -m755 -v "${pkgdir}/usr/lib/pkgconfig"
+ pushd "${pkgdir}/usr/lib/pkgconfig"
+ ln -sv "../minizip2/pkgconfig/minizip.pc" "minizip2.pc"
+ popd
+
install -D -v -m644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -D -v -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}