mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/xmltoman: modernize APKBUILD
This commit is contained in:
parent
11692cb83e
commit
73b14537fb
@ -8,33 +8,17 @@ url="http://xmltoman.sourceforge.net/"
|
|||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL"
|
license="GPL"
|
||||||
depends="perl-xml-parser"
|
depends="perl-xml-parser"
|
||||||
depends_dev=""
|
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz/$pkgname-$pkgver.tar.gz"
|
||||||
makedepends="$depends_dev"
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
install=""
|
|
||||||
subpackages=""
|
|
||||||
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}.tar.gz/${pkgname}-${pkgver}.tar.gz"
|
|
||||||
|
|
||||||
_builddir="${srcdir}"/${pkgname}-${pkgver}
|
|
||||||
prepare() {
|
|
||||||
local i
|
|
||||||
cd "$_builddir"
|
|
||||||
for i in $source; do
|
|
||||||
case $i in
|
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make PREFIX=/usr
|
make PREFIX=/usr
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make install PREFIX=/usr DESTDIR="${pkgdir}"
|
make install PREFIX=/usr DESTDIR="$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="99be944b9fce40b3fe397049bf14a097 xmltoman-0.4.tar.gz"
|
|
||||||
sha256sums="948794a316aaecd13add60e17e476beae86644d066cb60171fc6b779f2df14b0 xmltoman-0.4.tar.gz"
|
|
||||||
sha512sums="347722731e2101ecd0619f88f4efdbca534810c96977a1281af685e8a61f4c1a826a71a9f0e3af43cc899936640787366a78077f36d23a9efcfeb789dbcfae22 xmltoman-0.4.tar.gz"
|
sha512sums="347722731e2101ecd0619f88f4efdbca534810c96977a1281af685e8a61f4c1a826a71a9f0e3af43cc899936640787366a78077f36d23a9efcfeb789dbcfae22 xmltoman-0.4.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user