summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD58
3 files changed, 38 insertions, 37 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ebc4c60af79..8b3f151c1e8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,17 @@
pkgbase = zlib-ng-git
- pkgdesc = zlib replacement with optimizations for "next generation" systems
- pkgver = 2
+ pkgdesc = Zlib replacement with optimizations for "next generation" systems.
+ pkgver = r1549.b22bc51
pkgrel = 1
- epoch = 3
+ epoch = 4
url = https://github.com/zlib-ng/zlib-ng
arch = any
- license = custom
+ license = custom: Zlib License
makedepends = cmake
makedepends = git
depends = glibc
- provides = zlib=1.2.11
+ provides = zlib
provides = zlib-ng
conflicts = zlib
- conflicts = zlib-ng
- options = staticlibs
source = git+https://github.com/zlib-ng/zlib-ng.git
b2sums = SKIP
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3d21c52919a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+zlib-ng/
+
+*.pkg.* \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 90d16f56556..e8e3a556d26 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,14 @@
-# Maintainer: Diab Neiroukh <officiallazerl0rd@gmail.com>
+# Maintainer: Diab Neiroukh <lazerl0rd at thezest dot dev>
+# Contributor: Jacek Szafarkiewicz <szafar at linux dot pl>
pkgname="zlib-ng-git"
-pkgver=2
+pkgver="r1549.b22bc51"
pkgrel=1
-epoch=3
-pkgdesc="zlib replacement with optimizations for \"next generation\" systems"
-arch=(
- "any"
-)
+epoch=4
+arch=("any")
+pkgdesc="Zlib replacement with optimizations for \"next generation\" systems."
url="https://github.com/zlib-ng/zlib-ng"
-license=(
- "custom"
-)
+license=("custom: Zlib License")
depends=(
"glibc"
)
@@ -20,40 +17,41 @@ makedepends=(
"git"
)
provides=(
- "zlib=1.2.11"
+ "zlib"
"zlib-ng"
)
conflicts=(
"zlib"
- "zlib-ng"
-)
-options=(
- "staticlibs"
-)
-source=(
- "git+${url}.git"
-)
-b2sums=(
- "SKIP"
)
+source=("git+$url.git")
+b2sums=("SKIP")
+
+pkgver()
+{
+ cd "zlib-ng"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
build()
{
- cd "zlib-ng" || exit
- ./configure --prefix="/usr" --zlib-compat
- make
+ cmake \
+ -S "zlib-ng" \
+ -B "build" \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DZLIB_COMPAT=ON
+
+ make -C "build"
}
check()
{
- cd "zlib-ng" || exit
- make test
+ make -C "build" test
}
package()
{
- cd "zlib-ng" || exit
- make install DESTDIR="${pkgdir}"
-
- install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ make DESTDIR="$pkgdir" -C "build" install
+ install -D -m644 "zlib-ng/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}