diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-06 13:05:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-06 13:05:31 +0000 |
commit | 979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8 (patch) | |
tree | b7cdcc6dce951ce95ea33b97e84850098eb867c8 /main/man/APKBUILD | |
parent | 16164ba035609a2a8f7f98de7fa1052ad201a915 (diff) | |
download | aports-979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8.tar.bz2 aports-979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8.tar.xz |
main/man: use package() function
Diffstat (limited to 'main/man/APKBUILD')
-rw-r--r-- | main/man/APKBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/main/man/APKBUILD b/main/man/APKBUILD index 3be9fdbd1e..f5ada93f55 100644 --- a/main/man/APKBUILD +++ b/main/man/APKBUILD @@ -11,17 +11,24 @@ source="http://primates.ximian.com/~flucifredi/$pkgname/$pkgname-$pkgver.tar.gz whatis.periodic.daily $pkgname-troff.patch" -build () { +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" local i - cd "$srcdir/$pkgname-$pkgver" for i in ../*.patch; do msg "Applying $i" patch -p1 -i $i || return 1 done +} +build () { + cd "$_builddir" ./configure -confdir=/etc +sgid +fhs +lang none - make || return 1 +} + +package() { + cd "$_builddir" make PREFIX="$pkgdir" install || return 1 sed -i -e "s|-Tlatin1||g" \ |