-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD.in
33 lines (31 loc) · 948 Bytes
/
PKGBUILD.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: @email@
pkgname=pistop
pkgver=@version@
pkgrel=@release@
pkgdesc="Start/Stop services on file server startup/shutdown"
arch=('i686' 'x86_64')
url="https://github.com/mbhangui/pistop"
license=('GPL3')
groups=('base-devel')
depends=('coreutils' 'findutils' 'sed' 'libqmail')
source=("$pkgname-${pkgver}.tar.gz")
sha256sums=('SKIP')
provides=("pkgname")
options=('strip' '!libtool' 'docs' 'staticlibs' 'zipman' 'debug')
backup=(etc/${pkgname}/${pkgname}-release)
changelog=$pkgname.changes
_prefix=@prefix@
_shareddir=@prefix@/share
build() {
cd $srcdir/$pkgname-${pkgver}
./configure --prefix=${_prefix} --sysconfdir=/etc/${pkgname} \
--libexecdir=${_prefix}/libexec/${pkgname}
make -s
}
package() {
depends=('shadow' 'daemontools' 'ucspi-tcp')
cd $srcdir/$pkgname-${pkgver}
make DESTDIR=${pkgdir} install
install -D -m 0644 ${pkgname}.changes "$pkgdir"${_shareddir}/doc/${pkgname}/${pkgname}.changes
cd $srcdir
}