jobextra/memcached/PKGBUILD

56 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=memcached
pkgver=1.6.18
pkgrel=01
pkgdesc='Distributed memory object caching system w/o systemd'
url='https://memcached.org/'
arch=('x86_64')
depends=('glibc' 'libevent' 'libseccomp' 'libseccomp.so')
optdepends=('perl: for memcached-tool usage')
source=(https://www.memcached.org/files/${pkgname}-${pkgver}.tar.gz
memcached.sysusers
memcached.tmpfiles)
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--enable-seccomp
make
}
#check() {
# cd ${pkgname}-${pkgver}
# make test
#}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 755 scripts/memcached-tool -t "${pkgdir}/usr/bin"
install -Dm 644 scripts/memcached-tool.1 -t "${pkgdir}/usr/share/man/man1"
install -Dm 644 ../memcached.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/memcached.conf"
install -Dm 644 ../memcached.sysusers "${pkgdir}/usr/lib/sysusers.d/memcached.conf"
}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=(cbdd6ab8810649ac5d92fcd0fcb0ca931d8a9dbd0ad8cc575b47222eedd64158 # memcached-1.6.18.tar.gz
228c4f536f3c9f9eee4e11226ec8846a22d4ba46c2d3bf2811413efcc322609a # memcached.sysusers
c4d0ae2218b99a276ff6e0084ae81e66add0ca9347e4bde70e9172db6e44002a) # memcached.tmpfiles
## 2c9f6535c734e63ed29ade98e41797b05fb4a8cb5a752469659bdc6f39ae8039 memcached-1.6.18-01-x86_64.pkg.tar.lz