summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorivan2017-02-12 15:48:23 +0800
committerivan2017-02-12 15:49:04 +0800
commit3339b8a979a286f635ab973d9675e9f3c1d79a4a (patch)
tree381f322bad9f32fb4894c21a8e79fdf1a824d1ee
downloadaur-3339b8a979a286f635ab973d9675e9f3c1d79a4a.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD32
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bd61f7c01ca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = adblock2privoxy
+ pkgdesc = Convert adblock config files to privoxy format
+ pkgver = 1.4.2
+ pkgrel = 1
+ url = https://projects.zubr.me/wiki/adblock2privoxy
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = stack
+ depends = zlib
+ depends = gmp
+ source = http://hackage.haskell.org/package/adblock2privoxy-1.4.2/adblock2privoxy-1.4.2.tar.gz
+ md5sums = eb04789e8fc785607f70658870c1b53d
+
+pkgname = adblock2privoxy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f0c337e577d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Ivan Wu <2967948168@qq.com>
+pkgname=adblock2privoxy
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="Convert adblock config files to privoxy format"
+arch=('i686' 'x86_64')
+url="https://projects.zubr.me/wiki/adblock2privoxy"
+license=('GPL')
+depends=('zlib' 'gmp')
+makedepends=('stack')
+source=("http://hackage.haskell.org/package/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
+md5sums=('eb04789e8fc785607f70658870c1b53d') #generate with 'makepkg -g'
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ stack setup
+ stack install cabal-install
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ stack build --only-dependencies
+ stack exec --no-ghc-package-path runhaskell -- Setup.hs configure --user --prefix=/usr --package-db=clear --package-db=global --package-db="$(stack path --snapshot-pkg-db)" --package-db="$(stack path --local-pkg-db)" --docdir=/usr/share/doc/$pkgname --datasubdir=""
+ stack exec --no-ghc-package-path runhaskell -- Setup.hs build
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ stack exec --no-ghc-package-path runhaskell -- Setup.hs copy --destdir=$pkgdir
+}
+
+# vim:set ts=2 sw=2 et: