diff options
author | Chocobo1 | 2018-01-09 22:50:37 +0800 |
---|---|---|
committer | Chocobo1 | 2018-01-09 22:53:53 +0800 |
commit | f015ccc94d4a487f58c1e0846ad78c36d9efbeb0 (patch) | |
tree | 1a1a3bc85ba82c9b27d905254a603a232a72e7c3 /PKGBUILD | |
download | aur-f015ccc94d4a487f58c1e0846ad78c36d9efbeb0.tar.gz |
newpkg: polipo-git 1.1.1.r41.g4d42ca1-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e13564f8b86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=polipo-git +pkgver=1.1.1.r41.g4d42ca1 +pkgrel=1 +pkgdesc="A caching web proxy" +arch=('i686' 'x86_64') +url="https://www.irif.fr/~jch/software/polipo/" +license=('MIT') +depends=('glibc') +makedepends=('git') +provides=('polipo') +conflicts=('polipo') +source=("git+https://github.com/jech/polipo.git" + "polipo.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/polipo.service?h=packages/polipo" + "polipo.sysusers::https://git.archlinux.org/svntogit/community.git/plain/trunk/polipo.sysusers?h=packages/polipo" + "polipo.tmpfiles::https://git.archlinux.org/svntogit/community.git/plain/trunk/polipo.tmpfiles?h=packages/polipo") +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + + +prepare() { + cd "polipo" + + sed -i 's/-Os/-O2/g' Makefile +} + +pkgver() { + cd "polipo" + + git describe --long --tags | sed 's/^polipo-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "polipo" + + make +} + +package() { + cd "polipo" + + make PREFIX="$pkgdir/usr" \ + MANDIR="$pkgdir/usr/share/man" \ + INFODIR="$pkgdir/usr/share/info" \ + LOCAL_ROOT="$pkgdir/usr/share/polipo/www" \ + DISK_CACHE_ROOT="$pkgdir/var/cache/polipo" \ + install + + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/polipo/COPYING" + + # install config files + install -Dm644 "config.sample" "$pkgdir/etc/polipo/config.sample" + install -Dm644 "forbidden.sample" "$pkgdir/etc/polipo/forbidden.sample" + + # install systemd service + install -Dm644 "$srcdir/polipo.service" "$pkgdir/usr/lib/systemd/system/polipo.service" + + # install system user + install -Dm644 "$srcdir/polipo.sysusers" "$pkgdir/usr/lib/sysusers.d/polipo.conf" + install -Dm644 "$srcdir/polipo.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/polipo.conf" +} |