summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12022-01-15 00:23:39 +0800
committerChocobo12022-01-15 00:24:06 +0800
commita3762c184d2c4a3f55ff2eb53d4031cd2c17cebd (patch)
treecdaaa936dc759e25143017265e0ad1f7205b600e
downloadaur-a3762c184d2c4a3f55ff2eb53d4031cd2c17cebd.tar.gz
newpkg: libproxy-git r879.g5d5e13d-1
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD53
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0d17c523b479
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = libproxy-git
+ pkgdesc = A library that provides automatic proxy configuration management
+ pkgver = r879.g5d5e13d
+ pkgrel = 1
+ url = https://libproxy.github.io/libproxy/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = perl
+ makedepends = python
+ makedepends = webkit2gtk
+ depends = glibc
+ depends = glib2
+ depends = dbus
+ provides = libproxy
+ conflicts = libproxy
+ options = staticlibs
+ source = git+https://github.com/libproxy/libproxy.git
+ sha256sums = SKIP
+
+pkgname = libproxy-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..8a9ea5781328
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libproxy-git
+pkgver=r879.g5d5e13d
+pkgrel=1
+pkgdesc="A library that provides automatic proxy configuration management"
+arch=('i686' 'x86_64')
+url="https://libproxy.github.io/libproxy/"
+license=('LGPL')
+depends=('glibc' 'glib2' 'dbus')
+makedepends=('git' 'cmake' 'perl' 'python' 'webkit2gtk')
+provides=('libproxy')
+conflicts=('libproxy')
+options=('staticlibs')
+source=("git+https://github.com/libproxy/libproxy.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libproxy"
+
+ _rev=$(git rev-list --count --all)
+ _hash=$(git rev-parse --short HEAD)
+ printf "r%s.g%s" "$_rev" "$_hash"
+}
+
+build() {
+ cd "libproxy"
+
+ cmake \
+ -B "_build" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DBIPR=OFF \
+ -DPERL_VENDORINSTALL=ON \
+ -DWITH_WEBKIT3=ON \
+ ./
+ make -C "_build"
+}
+
+check() {
+ cd "libproxy"
+
+ make -C "_build" test
+}
+
+package() {
+ cd "libproxy"
+
+ make -C "_build" DESTDIR="$pkgdir" install
+ install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libproxy"
+}