summaryrefslogtreecommitdiffstats
path: root/base/libixp/Pkgfile
blob: eae1577d4df1b6c5e462ea115d29dc07ca838819 (plain)
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
# Description:A standalone client/server 9p library
# URL:http://www.suckless.org/libs/libixp.html
# Maintainer:  NuTyX packager team
# Packager: lesibel at free dot fr

name=libixp
version=0.5
release=1
source=(http://code.suckless.org/dl/libs/$name-$version.tar.gz)
build() {
	cd $name-$version
	sed -i \
        -e "/^PREFIX/s|=.*|= $PKG/pkg/usr|" \
        -e "/^  ETC/s|=.*|= $PKG}/pkg/etc|" \
        -e "/^CFLAGS/s|=|+=|" \
        -e "/^LDFLAGS/s|=|+=|" \
        config.mk || return 1

  make || return 1
  make DESTDIR=$PKG install || return 1

  install -m644 -D ./libixp/LICENSE \
                   $PKG/usr/share/licenses/libixp/LICENSE

}