File: PKGBUILD

package info (click to toggle)
libixp 0.6~20121202%2Bhg148-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 988 kB
  • sloc: ansic: 4,908; sh: 142; perl: 121; makefile: 111
file content (29 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (2)
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

pkgname="libixp-hg"
pkgver=131
pkgrel=1
pkgdesc="The latest hg pull of libixp, a simple 9P filesystem library"
url="http://libs.suckless.org/libixp"
license=(MIT)
arch=(i686 x86_64)
makedepends=(mercurial)
provides=(libixp)
conflicts=(libixp)
source=()
options=(!strip)

FORCE_VER=$(hg log -r . --template {rev})

build()
{
    cd $startdir
    flags=(PREFIX=/usr \
           ETC=/etc    \
           DESTDIR="$pkgdir")

    make "${flags[@]}" || return 1
    make "${flags[@]}" install || return 1

    install -m644 -D ./LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}