2020-10-19 00:17:54 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PKG_ARCH=`dpkg --print-architecture`
|
|
|
|
PKG_DATE=`date -R`
|
2020-11-03 18:14:57 -05:00
|
|
|
PKG_VERSION=`cd /src && git describe --tags --abbrev=0`
|
2020-10-19 00:17:54 -04:00
|
|
|
|
|
|
|
echo "PKG_VERSION=$PKG_VERSION"
|
|
|
|
echo "PKG_ARCH=$PKG_ARCH"
|
|
|
|
echo "PKG_DATE=$PKG_DATE"
|
|
|
|
|
|
|
|
cd /src && \
|
|
|
|
make miniflux && \
|
|
|
|
mkdir -p /build/debian && \
|
|
|
|
cd /build && \
|
|
|
|
cp /src/miniflux /build/ && \
|
|
|
|
cp /src/miniflux.1 /build/ && \
|
|
|
|
cp /src/LICENSE /build/ && \
|
|
|
|
cp /src/packaging/miniflux.conf /build/ && \
|
|
|
|
cp /src/packaging/systemd/miniflux.service /build/debian/ && \
|
|
|
|
cp /src/packaging/debian/compat /build/debian/compat && \
|
|
|
|
cp /src/packaging/debian/copyright /build/debian/copyright && \
|
|
|
|
cp /src/packaging/debian/miniflux.manpages /build/debian/miniflux.manpages && \
|
2020-11-09 23:36:42 -05:00
|
|
|
cp /src/packaging/debian/miniflux.postinst /build/debian/miniflux.postinst && \
|
2020-10-19 00:17:54 -04:00
|
|
|
cp /src/packaging/debian/rules /build/debian/rules && \
|
2022-11-03 11:07:00 -04:00
|
|
|
cp /src/packaging/debian/miniflux.dirs /build/debian/miniflux.dirs && \
|
2020-10-19 00:17:54 -04:00
|
|
|
echo "miniflux ($PKG_VERSION) experimental; urgency=low" > /build/debian/changelog && \
|
|
|
|
echo " * Miniflux version $PKG_VERSION" >> /build/debian/changelog && \
|
|
|
|
echo " -- Frédéric Guillot <f@miniflux.net> $PKG_DATE" >> /build/debian/changelog && \
|
|
|
|
sed "s/__PKG_ARCH__/${PKG_ARCH}/g" /src/packaging/debian/control > /build/debian/control && \
|
|
|
|
dpkg-buildpackage -us -uc -b && \
|
|
|
|
lintian --check --color always ../*.deb && \
|
|
|
|
cp ../*.deb /pkg/
|