summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Dems2019-12-20 20:12:12 +0100
committerMaciej Dems2019-12-20 20:12:12 +0100
commitb5f8562475fc3efa65eccf171eeb26f3ee12fdb3 (patch)
tree90b43a62ba44313a5f42f2bcf1ccd8af2fcf6c27
downloadaur-b5f8562475fc3efa65eccf171eeb26f3ee12fdb3.tar.gz
First packaging of konwert
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD51
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..59d4f0875a4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = konwert
+ pkgdesc = Charset conversion for files or terminal I/O
+ pkgver = 1.8
+ pkgrel = 1
+ url = https://packages.debian.org/stable/konwert
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = perl
+ source = http://deb.debian.org/debian/pool/main/k/konwert/konwert_$pkgver.orig.tar.gz
+ source = http://deb.debian.org/debian/pool/main/k/konwert/konwert_$pkgver-$debrel.debian.tar.xz
+ md5sums = 838e73ec911ebf25816135cbfd0f7a04
+ md5sums = 5b3541ccc205dfa399169c3e306f292b
+
+pkgname = konwert
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7030e7d3d5a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+*.pkg.tar.xz
+konwert*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2bf67cf3eca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Maciej Dems <macdems@gmail.com>
+pkgname=konwert
+pkgver=1.8
+debrel=13
+pkgrel=1
+pkgdesc="Charset conversion for files or terminal I/O"
+arch=('i686' 'x86_64')
+url="https://packages.debian.org/stable/konwert"
+license=('GPL')
+depends=(perl)
+#makedepends=()
+#optdepends=()
+source=('http://deb.debian.org/debian/pool/main/k/konwert/konwert_$pkgver.orig.tar.gz'
+ 'http://deb.debian.org/debian/pool/main/k/konwert/konwert_$pkgver-$debrel.debian.tar.xz')
+md5sums=('838e73ec911ebf25816135cbfd0f7a04'
+ '5b3541ccc205dfa399169c3e306f292b') #generate with 'makepkg -g'
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ for p in $(cat ../debian/patches/series); do
+ patch -p1 < ../debian/patches/$p
+ done
+}
+
+CPPFLAGS=""
+CXXFLAGS="-O2"
+LDFLAGS=""
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make clean
+
+ chmod +x filters/UTF8-prn7pl
+ make CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make install prefix=$pkgdir/usr nofixmanconfig=1 mandir=$pkgdir/usr/share/man
+
+ mkdir -p $pkgdir/usr/share/doc
+ mv $pkgdir/usr/doc/* $pkgdir/usr/share/doc/
+ rmdir $pkgdir/usr/doc
+
+ # Remove development files
+ rm -r $pkgdir/usr/share/konwert/devel
+ rm -r $pkgdir/usr/lib/konwert/devel
+}
+